X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/bdd2a99650780a1ef4a9e788eaabbc5e810cc39c..fc80bbcd268a28efc9869666d3a8dc078c300b58:/cgi/cgimain.c?ds=sidebyside diff --git a/cgi/cgimain.c b/cgi/cgimain.c index e96bbab..219f2b7 100644 --- a/cgi/cgimain.c +++ b/cgi/cgimain.c @@ -36,7 +36,9 @@ int main(int argc, char **argv) { printf("Content-Type: text/html; charset=UTF-8\n"); printf("Status: 404\n"); printf("\n"); - printf("

Sorry, PATH_INFO not supported.

\n"); + printf("

Sorry, is PATH_INFO not supported." + "Try here instead.

\n", + cgi_sgmlquote(infer_url(0/*!include_path_info*/))); exit(0); } /* Parse CGI arguments */ @@ -53,7 +55,7 @@ int main(int argc, char **argv) { /* Figure out our URL. This can still be overridden from the config file if * necessary but it shouldn't be necessary in ordinary installations. */ if(!config->url) - config->url = infer_url(); + config->url = infer_url(1/*include_path_info*/); /* Pick up the cookie, if there is one */ dcgi_get_cookie(); /* Register expansions */