From: William A. Rowe Jr Date: Thu, 21 Mar 2002 05:58:08 +0000 (+0000) Subject: Win32; Never invoke cmd or bat scripts based on the registry, X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f7388e4e5502ea4b3bd2ae3b80e77c65c6a815;p=thirdparty%2Fapache%2Fhttpd.git Win32; Never invoke cmd or bat scripts based on the registry, even with 'ScriptInterpreterSource Registry' enabled, since I've discovered the registry is inconsistent between the versions of WinNT/2K/XP. [William Rowe] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@94074 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/main/http_core.c b/src/main/http_core.c index 61c675a3711..abab52a2e02 100644 --- a/src/main/http_core.c +++ b/src/main/http_core.c @@ -979,12 +979,8 @@ API_EXPORT (file_type_e) ap_get_win32_interpreter(const request_rec *r, } ext = strrchr(exename, '.'); - if (ext && (!strcasecmp(ext,".bat") || !strcasecmp(ext,".cmd")) && - d->script_interpreter_source != INTERPRETER_SOURCE_REGISTRY) + if (ext && (!strcasecmp(ext,".bat") || !strcasecmp(ext,".cmd"))) { - /* The registry does these for us unless INTERPRETER_SOURCE_REGISTRY - * was not enabled. - */ char *p, *shellcmd = getenv("COMSPEC"); if (!shellcmd) shellcmd = SHELL_PATH;