/* If the file has an extension and it is not .com and not .exe and
* we've been instructed to search the registry, then do so.
+ * Let apr_proc_create do all of the .bat/.cmd dirty work.
*/
if (ext && (!strcasecmp(ext,".exe") || !strcasecmp(ext,".com")
|| !strcasecmp(ext,".bat") || !strcasecmp(ext,".cmd"))) {
== INTERPRETER_SOURCE_REGISTRY_STRICT);
interpreter = get_interpreter_from_win32_registry(r->pool, ext,
strict);
- if (!interpreter) {
+ if (interpreter) {
+ *type = APR_PROGRAM_PATH;
+ }
+ else {
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, 0, r->server,
strict ? "No ExecCGI verb found for files of type '%s'."
: "No ExecCGI or Open verb found for files of type '%s'.",
while (isspace(*interpreter)) {
++interpreter;
}
+ *type = APR_PROGRAM_PATH;
}
}
else {