CGI: if the page is missing, give the "missing page" a 404 status
parent
5ce3a01300
commit
78d1b2340e
|
@ -318,7 +318,7 @@ sub cgi_goto ($;$) {
|
||||||
my $link = bestlink("", $page);
|
my $link = bestlink("", $page);
|
||||||
|
|
||||||
if (! length $link) {
|
if (! length $link) {
|
||||||
print "Content-type: text/html\n\n";
|
print $q->header(-status => "404 Not Found");
|
||||||
print misctemplate(gettext("missing page"),
|
print misctemplate(gettext("missing page"),
|
||||||
"<p>".
|
"<p>".
|
||||||
sprintf(gettext("The page %s does not exist."),
|
sprintf(gettext("The page %s does not exist."),
|
||||||
|
|
Loading…
Reference in New Issue