orrg

online rss & atom feed reader for gemini
git clone https://git.clttr.info/orrg.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 08a67a7b51c33a348137b4e6b5dc2366e9f90e47
parent 4454cc3f1b97506f166c883145dc8773de99b4be
Author: René Wagner <rwagner@rw-net.de>
Date:   Mon,  8 Feb 2021 16:23:26 +0100

do not act if a path is set

Diffstat:
Mindex.pl | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/index.pl b/index.pl @@ -17,6 +17,10 @@ if (!defined($ENV{'SERVER_PROTOCOL'}) || $ENV{'SERVER_PROTOCOL'} ne 'GEMINI') { write_response('CGI_ERROR', 'CGI execution error', undef); } +if ($ENV{'QUERY_STRING'} ne '' || $ENV{'PATH_INFO'} ne '') { + write_response('NOT_FOUND', 'File not found', undef); +} + write_response('SUCCESS', 'text/gemini', body()); exit;