From: Mischa POSLAWSKY Date: Wed, 24 Nov 2021 23:58:19 +0000 (+0100) Subject: source: subdirectory index for tools/ X-Git-Tag: v1.13~75 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/618117fd1a97ad4550b3316a980e2ffcca4e409c source: subdirectory index for tools/ --- diff --git a/source.plp b/source.plp index 9c18320..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";