Skip to content

Commit 10c73c3

Browse files
committed
Fix serious brokenness... we abused prog_type rather than cmd_type on Win32 when handling APR_PROGRAM_PATH and APR_SHELLCMD style invocations. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95679 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9a36364 commit 10c73c3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

modules/arch/win32/mod_win32.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ static apr_status_t ap_cgi_build_command(const char **cmd, const char ***argv,
457457
== INTERPRETER_SOURCE_REGISTRY_STRICT);
458458
interpreter = get_interpreter_from_win32_registry(r->pool, ext,
459459
strict);
460-
if (interpreter && e_info->prog_type != APR_SHELLCMD) {
461-
e_info->prog_type = APR_PROGRAM_PATH;
460+
if (interpreter && e_info->cmd_type != APR_SHELLCMD) {
461+
e_info->cmd_type = APR_PROGRAM_PATH;
462462
}
463463
else {
464464
ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server,
@@ -499,8 +499,8 @@ static apr_status_t ap_cgi_build_command(const char **cmd, const char ***argv,
499499
while (isspace(*interpreter)) {
500500
++interpreter;
501501
}
502-
if (e_info->prog_type != APR_SHELLCMD) {
503-
e_info->prog_type = APR_PROGRAM_PATH;
502+
if (e_info->cmd_type != APR_SHELLCMD) {
503+
e_info->cmd_type = APR_PROGRAM_PATH;
504504
}
505505
}
506506
}

0 commit comments

Comments
 (0)