Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cgi-bin/pgstatus.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@

my $query = CGI->new;

# don't let people play games with GET requests - this should be called via POST
# don't let people play games with GET (or other) requests - this should be called via POST
# the URL should only contain the signature
if ($query->request_method eq 'GET')
if ($query->request_method ne 'POST')
{
print
"Status: 496 wrong request method\nContent-Type: text/plain\n\n",
"Status: 405 Method Not Allowed\nContent-Type: text/plain\n\n",
"wrong request method\n";
exit;
}
Expand Down