diff options
author | Michael R Sweet <michaelrsweet@gmail.com> | 2017-11-01 12:00:13 -0400 |
---|---|---|
committer | Michael R Sweet <michaelrsweet@gmail.com> | 2017-11-01 12:00:13 -0400 |
commit | 98491ecc6fb571869d0947096982a64d6ec16a7d (patch) | |
tree | 5076c64094e94075efa93a0d21113edb79c031de /scheduler/client.c | |
parent | 4d8e89a654257c6822696fc9bb12159d33721f2d (diff) | |
download | cups-98491ecc6fb571869d0947096982a64d6ec16a7d.tar.gz |
Drop hard-coded CGI scripting language support (Issue #5124)
Diffstat (limited to 'scheduler/client.c')
-rw-r--r-- | scheduler/client.c | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/scheduler/client.c b/scheduler/client.c index d628dc6c3..4d6604651 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -3115,45 +3115,6 @@ get_file(cupsd_client_t *con, /* I - Client connection */ strlcpy(ptr, "index.html", plen); status = lstat(filename, filestats); - -#ifdef HAVE_JAVA - if (status) - { - strlcpy(ptr, "index.class", plen); - status = lstat(filename, filestats); - } -#endif /* HAVE_JAVA */ - -#ifdef HAVE_PERL - if (status) - { - strlcpy(ptr, "index.pl", plen); - status = lstat(filename, filestats); - } -#endif /* HAVE_PERL */ - -#ifdef HAVE_PHP - if (status) - { - strlcpy(ptr, "index.php", plen); - status = lstat(filename, filestats); - } -#endif /* HAVE_PHP */ - -#ifdef HAVE_PYTHON - if (status) - { - strlcpy(ptr, "index.pyc", plen); - status = lstat(filename, filestats); - } - - if (status) - { - strlcpy(ptr, "index.py", plen); - status = lstat(filename, filestats); - } -#endif /* HAVE_PYTHON */ - } while (status && language[0]); @@ -3336,78 +3297,6 @@ is_cgi(cupsd_client_t *con, /* I - Client connection */ cupsdLogClient(con, CUPSD_LOG_DEBUG2, "is_cgi: filename=\"%s\", filestats=%p, type=%s/%s, returning 1.", filename, filestats, type->super, type->type); return (1); } -#ifdef HAVE_JAVA - else if (!_cups_strcasecmp(type->type, "x-httpd-java")) - { - /* - * "application/x-httpd-java" is a Java servlet. - */ - - cupsdSetString(&con->command, CUPS_JAVA); - - if (options) - cupsdSetStringf(&con->options, " %s %s", filename, options); - else - cupsdSetStringf(&con->options, " %s", filename); - - cupsdLogClient(con, CUPSD_LOG_DEBUG2, "is_cgi: filename=\"%s\", filestats=%p, type=%s/%s, returning 1.", filename, filestats, type->super, type->type); - return (1); - } -#endif /* HAVE_JAVA */ -#ifdef HAVE_PERL - else if (!_cups_strcasecmp(type->type, "x-httpd-perl")) - { - /* - * "application/x-httpd-perl" is a Perl page. - */ - - cupsdSetString(&con->command, CUPS_PERL); - - if (options) - cupsdSetStringf(&con->options, " %s %s", filename, options); - else - cupsdSetStringf(&con->options, " %s", filename); - - cupsdLogClient(con, CUPSD_LOG_DEBUG2, "is_cgi: filename=\"%s\", filestats=%p, type=%s/%s, returning 1.", filename, filestats, type->super, type->type); - return (1); - } -#endif /* HAVE_PERL */ -#ifdef HAVE_PHP - else if (!_cups_strcasecmp(type->type, "x-httpd-php")) - { - /* - * "application/x-httpd-php" is a PHP page. - */ - - cupsdSetString(&con->command, CUPS_PHP); - - if (options) - cupsdSetStringf(&con->options, " %s %s", filename, options); - else - cupsdSetStringf(&con->options, " %s", filename); - - cupsdLogClient(con, CUPSD_LOG_DEBUG2, "is_cgi: filename=\"%s\", filestats=%p, type=%s/%s, returning 1.", filename, filestats, type->super, type->type); - return (1); - } -#endif /* HAVE_PHP */ -#ifdef HAVE_PYTHON - else if (!_cups_strcasecmp(type->type, "x-httpd-python")) - { - /* - * "application/x-httpd-python" is a Python page. - */ - - cupsdSetString(&con->command, CUPS_PYTHON); - - if (options) - cupsdSetStringf(&con->options, " %s %s", filename, options); - else - cupsdSetStringf(&con->options, " %s", filename); - - cupsdLogClient(con, CUPSD_LOG_DEBUG2, "is_cgi: filename=\"%s\", filestats=%p, type=%s/%s, returning 1.", filename, filestats, type->super, type->type); - return (1); - } -#endif /* HAVE_PYTHON */ cupsdLogClient(con, CUPSD_LOG_DEBUG2, "is_cgi: filename=\"%s\", filestats=%p, type=%s/%s, returning 0.", filename, filestats, type->super, type->type); return (0); |