From: mike Date: Sat, 25 Feb 2006 02:27:01 +0000 (+0000) Subject: Fix "/" path info handling (treat as no PATH_INFO at all...) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed2fe19e4e21b324a322cfc6f1b17e25c6b0db9c;p=thirdparty%2Fcups.git Fix "/" path info handling (treat as no PATH_INFO at all...) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@5168 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/cgi-bin/help.c b/cgi-bin/help.c index 4aac66ba1e..aa86e9016e 100644 --- a/cgi-bin/help.c +++ b/cgi-bin/help.c @@ -111,8 +111,13 @@ main(int argc, /* I - Number of command-line arguments */ fprintf(stderr, "argv[%d]=\"%s\"\n", i, argv[i]); if ((helpfile = getenv("PATH_INFO")) != NULL) + { helpfile ++; + if (!*helpfile) + helpfile = NULL; + } + if (helpfile) { /*