mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Fix a long-standing bug in 2.0, CGI scripts were being called
with relative paths instead of absolute paths. Apache 1.3 used absolute paths for everything except for SuExec, this brings back that standard. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95899 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -513,13 +513,7 @@ static apr_status_t default_build_command(const char **cmd, const char ***argv,
|
||||
const char *args = NULL;
|
||||
|
||||
if (e_info->process_cgi) {
|
||||
/* Allow suexec's "/" check to succeed */
|
||||
const char *argv0 = strrchr(r->filename, '/');
|
||||
if (argv0 != NULL)
|
||||
argv0++;
|
||||
else
|
||||
argv0 = r->filename;
|
||||
*cmd = argv0;
|
||||
*cmd = r->filename;
|
||||
args = r->args;
|
||||
/* Do not process r->args if they contain an '=' assignment
|
||||
*/
|
||||
|
Reference in New Issue
Block a user