]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix "/" path info handling (treat as no PATH_INFO at all...)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 25 Feb 2006 02:27:01 +0000 (02:27 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 25 Feb 2006 02:27:01 +0000 (02:27 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@5168 7a7537e8-13f0-0310-91df-b6672ffda945

cgi-bin/help.c

index 4aac66ba1e488e4621ac4aca56bbc1f9bf711059..aa86e9016e8f563f2c077641841809d9150fc490 100644 (file)
@@ -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)
   {
    /*