From: William A. Rowe Jr Date: Tue, 20 Jun 2000 03:53:55 +0000 (+0000) Subject: This patch disallows bogus args to the ScriptInterpreterSource directive X-Git-Tag: APACHE_2_0_ALPHA_5~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8dfe7949387077b7e209c4c998672ece8fcb194;p=apache This patch disallows bogus args to the ScriptInterpreterSource directive 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 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 1d30c4491e..77fe14c69f 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -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; }