]> granicus.if.org Git - apache/commitdiff
This patch disallows bogus args to the ScriptInterpreterSource directive
authorWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 20 Jun 2000 03:53:55 +0000 (03:53 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 20 Jun 2000 03:53:55 +0000 (03:53 +0000)
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85624 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 1d30c4491ec4e0ba9633f34da9dadca90145d273..77fe14c69f9f93693bc92de78a2f22912e741658 100644 (file)
@@ -2349,7 +2349,8 @@ static const char *set_interpreter_source(cmd_parms *cmd, core_dir_config *d,
     } else if (!strcasecmp(arg, "script")) {
         d->script_interpreter_source = INTERPRETER_SOURCE_SHEBANG;
     } else {
-        d->script_interpreter_source = INTERPRETER_SOURCE_SHEBANG;
+        ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, cmd->server,
+                     "%s option %s is invalid", cmd->cmd->name, arg);
     }
     return NULL;
 }