X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/598285f72ae22bca87d53a29651e7110a253b25b..35a635c705ad1449df22a7cf5f6623b9445e40e3:/source.plp?ds=sidebyside
diff --git a/source.plp b/source.plp
index 43fddb6..358bf84 100644
--- a/source.plp
+++ b/source.plp
@@ -43,13 +43,18 @@ Html({
say '';
-if (not $source) {
- print "
Source files
";
+if (not $source or -d $source) {
+ PLP_START {
+ print "Source files
";
+ };
+
+ if ($source and $source ne 'tools') {
+ Abort("Directory index not permitted", '403 source not allowed');
+ }
print "Project code distributed under the AGPL. Please contribute back.
";
say '';
- for (glob '*.plp') {
- chomp;
+ for (glob($source ? "$source/*" : '*.plp')) {
say '- ', showlink($_, "/source/$_");
}
say "
\n";
@@ -99,6 +104,7 @@ else {
Statement => 'strong',
Error => 'em',
Todo => 'em',
+ PreProc => 'strong',
);
say '';