From: Michael R Sweet Date: Thu, 24 Jan 2019 19:31:28 +0000 (-0500) Subject: Fix online help through web interface... X-Git-Tag: v2.3b8~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd880c0c4dd8380e60c8f1f151b9564ae9f90564;p=thirdparty%2Fcups.git Fix online help through web interface... --- diff --git a/scheduler/client.c b/scheduler/client.c index c649472488..153a6e4432 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -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 */