diff options
-rw-r--r-- | cgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1026,7 +1026,7 @@ main(void) if (*path != '\0') { parse_path_info(&req, path); - if (access(path, F_OK) == -1) + if (req.q.manpath == NULL || access(path, F_OK) == -1) path = ""; } else if ((querystring = getenv("QUERY_STRING")) != NULL) parse_query_string(&req, querystring); |