diff options
author | Michael R Sweet <msweet@msweet.org> | 2021-09-09 11:09:12 -0400 |
---|---|---|
committer | Michael R Sweet <msweet@msweet.org> | 2021-09-09 11:09:12 -0400 |
commit | d03753f33432c790d7ed6c2487080e09bf884254 (patch) | |
tree | e0f962725e0d9ba3efb2d909820a93f9595f7c4a /scheduler | |
parent | 0bd1ce94ecba63b77f15f6bc154745bfd1faece5 (diff) | |
download | cups-d03753f33432c790d7ed6c2487080e09bf884254.tar.gz |
Update CGI documentation and add testable examples for CGI support (Issue #5940)
Diffstat (limited to 'scheduler')
-rw-r--r-- | scheduler/client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scheduler/client.c b/scheduler/client.c index ba54117e6..0126ef02d 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -2,7 +2,7 @@ * Client routines for the CUPS scheduler. * * Copyright © 2021 by OpenPrinting. - * Copyright © 2007-2019 by Apple Inc. + * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * * This file contains Kerberos support code, copyright 2006 by @@ -3120,8 +3120,7 @@ is_cgi(cupsd_client_t *con, /* I - Client connection */ return (0); } - if (!_cups_strcasecmp(type->type, "x-httpd-cgi") && - (filestats->st_mode & 0111)) + if (!_cups_strcasecmp(type->type, "x-httpd-cgi") && (filestats->st_mode & 0111) && (getuid() || !(filestats->st_mode & 022))) { /* * "application/x-httpd-cgi" is a CGI script. |