Browse Source

do not act if a path is set

master
René Wagner 4 months ago
parent
commit
08a67a7b51
  1. 4
      index.pl

4
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;

Loading…
Cancel
Save