From: André Malo Date: Sat, 28 Feb 2004 21:28:56 +0000 (+0000) Subject: when parsing a conditional expression, don't assume the first X-Git-Tag: 2.0.49~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c4dac225000b9c650fa0b885cbca68173406c5f;p=thirdparty%2Fapache%2Fhttpd.git when parsing a conditional expression, don't assume the first character to be a non-special. Reviewed by: Jeff Trawick, Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@102808 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index e4ee2c533c9..adf65d45182 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.49 + *) Fix mod_include's expression parser to recognize strings correctly + even if they start with an escaped token. [André Malo] + *) Add fatal exception hook for use by diagnostic modules. The hook is only available if the --enable-exception-hook configure parm is used and the EnableExceptionHook directive has been set to diff --git a/STATUS b/STATUS index 8fe5b83edc4..81643110e02 100644 --- a/STATUS +++ b/STATUS @@ -1,5 +1,5 @@ APACHE 2.0 STATUS: -*-text-*- -Last modified at [$Date: 2004/02/28 00:53:55 $] +Last modified at [$Date: 2004/02/28 21:28:55 $] Release: @@ -231,13 +231,6 @@ PATCHES TO BACKPORT FROM 2.1 PREREQ: Blow away of SSL_EXPERIMENTAL_ENGINE (see above) +1: jwoolley, trawick, jim, jerenkrantz - * mod_include's expression tokenizer: don't skip the first character of - a string, it may be a backslash. (2.0 + 1.3) - (patch for 2.0: http://cvs.apache.org/~nd/ssi-escape.patch) - 1.3 goes the same way. - modules/filters/mod_include.c: r1.264 - +1: nd, trawick, jerenkrantz - * When UseCanonicalName is set to OFF, allow ap_get_server_port to check r->connection->local_addr->port before defaulting to server->port or ap_default_port() diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 032dd4f04ee..2cf8fff651f 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -1335,7 +1335,7 @@ static const char *get_ptoken(request_rec *r, const char *string, token->value = apr_palloc(r->pool, strlen(string) + 2); /* 2 for ch plus trailing null */ if (!qs) { - token->value[next++] = ch; + --string; } /*