X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/598285f72ae22bca87d53a29651e7110a253b25b..50442220cc52bad55c1003de34f8dada958650d5:/source.plp 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 '\n"; @@ -99,6 +104,7 @@ else { Statement => 'strong', Error => 'em', Todo => 'em', + PreProc => 'strong', ); say '
';