From bd880c0c4dd8380e60c8f1f151b9564ae9f90564 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 24 Jan 2019 14:31:28 -0500 Subject: [PATCH] Fix online help through web interface... --- scheduler/client.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 */ -- 2.47.2