From: Stefan Fritsch Date: Sat, 16 Oct 2010 09:59:21 +0000 (+0000) Subject: core: Log a warning if or are used. They are X-Git-Tag: 2.3.9~313 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2ab8147b96117c3f46aa0df6d99460070427a49;p=apache core: Log a warning if or are used. They are deprecated and may go away in 2.4. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1023227 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index b2d0be8a08..18f54250d7 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,9 @@ Changes with Apache 2.3.9 Fix a denial of service attack against mod_reqtimeout. [Stefan Fritsch] + *) core: Log a warning if or are used. They are + deprecated and may go away in 2.4. [Stefan Fritsch] + *) mod_ssl: Log certificate information if client cert verification fails. PR 50094. [Lassi Tuura , Stefan Fritsch] @@ -63,6 +66,7 @@ Changes with Apache 2.3.9 *) core/mod_unique_id: Add generate_log_id hook to allow to use the ID generated by mod_unique_id as error log ID for requests. + [Stefan Fritsch] *) mod_cache: Make sure that we never allow a 304 Not Modified response that we asked for to leak to the client should the 304 response be diff --git a/server/core.c b/server/core.c index 50f82029f7..236067c12a 100644 --- a/server/core.c +++ b/server/core.c @@ -1664,6 +1664,12 @@ AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd, return unclosed_directive(cmd); } + ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, + "%s:%d: and are deprecated and " + "will likely be removed in 2.4. Use 'Require method', " + "mod_allow_method, or instead.", + cmd->directive->filename, cmd->directive->line_num); + limited_methods = apr_pstrndup(cmd->pool, arg, endp - arg); if (!limited_methods[0]) { @@ -3386,11 +3392,11 @@ AP_INIT_RAW_ARGS("