]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Win32; Never invoke cmd or bat scripts based on the registry,
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 21 Mar 2002 05:58:08 +0000 (05:58 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 21 Mar 2002 05:58:08 +0000 (05:58 +0000)
  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

src/main/http_core.c

index 61c675a37113e3925543bdccdea8bcf89e5cc2f8..abab52a2e0231a88bbb81be975b854fbdd27495d 100644 (file)
@@ -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;