]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix online help through web interface...
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 24 Jan 2019 19:31:28 +0000 (14:31 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 24 Jan 2019 19:31:28 +0000 (14:31 -0500)
scheduler/client.c

index c6494724889bf422fc84229b6b5ce55746f95a16..153a6e4432b0eb01128c8e02d5e605c305c84da6 100644 (file)
@@ -2695,7 +2695,15 @@ get_file(cupsd_client_t *con,            /* I  - Client connection */
 
   language[0] = '\0';
 
-  if ((!strncmp(con->uri, "/ppd/", 5) || !strncmp(con->uri, "/printers/", 10) || !strncmp(con->uri, "/classes/", 9)) && !strcmp(con->uri + strlen(con->uri) - 4, ".ppd"))
+  if (!strncmp(con->uri, "/help", 5) && (con->uri[5] == '/' || !con->uri[5]))
+  {
+   /*
+    * All help files are served by the help.cgi program...
+    */
+
+    return (NULL);
+  }
+  else if ((!strncmp(con->uri, "/ppd/", 5) || !strncmp(con->uri, "/printers/", 10) || !strncmp(con->uri, "/classes/", 9)) && !strcmp(con->uri + strlen(con->uri) - 4, ".ppd"))
   {
     strlcpy(dest, strchr(con->uri + 1, '/') + 1, sizeof(dest));
     dest[strlen(dest) - 4] = '\0'; /* Strip .ppd */