CGI: if the page is missing, give the "missing page" a 404 status

master
Simon McVittie 2009-01-31 16:51:13 +00:00
parent 5ce3a01300
commit 78d1b2340e
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ sub cgi_goto ($;$) {
my $link = bestlink("", $page);
if (! length $link) {
print "Content-type: text/html\n\n";
print $q->header(-status => "404 Not Found");
print misctemplate(gettext("missing page"),
"<p>".
sprintf(gettext("The page %s does not exist."),