diff options
-rw-r--r-- | fcgiwrap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -388,6 +388,8 @@ static char *get_cgi_filename(void) /* and fixup environment */ char *pathinfo = NULL; if ((p = getenv("SCRIPT_FILENAME"))) { + if (check_file_perms(p) != 0) + goto err; return strdup(p); } |