chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Loosen playlist command rights.
[disorder]
/
cgi
/
cgimain.c
diff --git
a/cgi/cgimain.c
b/cgi/cgimain.c
index e96bbab77b2235ea61593496e0aa783e916f8cda..219f2b77d937495fcec5252e6323388c8360e842 100644
(file)
--- 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("Content-Type: text/html; charset=UTF-8\n");
printf("Status: 404\n");
printf("\n");
- printf("<p>Sorry, PATH_INFO not supported.</p>\n");
+ printf("<p>Sorry, is PATH_INFO not supported."
+ "<a href=\"%s\">Try here instead.</a></p>\n",
+ cgi_sgmlquote(infer_url(0/*!include_path_info*/)));
exit(0);
}
/* Parse CGI arguments */
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)
/* 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 */
/* Pick up the cookie, if there is one */
dcgi_get_cookie();
/* Register expansions */