]> granicus.if.org Git - apache/commitdiff
Do not perform a p+= 7 that could go past the end of the buffer in case we find a...
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 4 Apr 2014 20:30:38 +0000 (20:30 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 4 Apr 2014 20:30:38 +0000 (20:30 +0000)
Should we need to deal with this case, a new search should be performed to find the real starting position of another potential 'content=' pattern.

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

modules/filters/mod_proxy_html.c

index 1d87f1106de78abb99e10d2ae630fc91bbad64a4..76fc6b56e9759a6f4a58dff70ab51c6617efebf0 100644 (file)
@@ -672,8 +672,9 @@ static meta *metafix(request_rec *r, const char *buf)
                     p += 7;
                     while (apr_isspace(*p))
                         ++p;
+                    /* XXX Should we search for another content= pattern? */
                     if (*p != '=')
-                        continue;
+                        break;
                     while (*p && apr_isspace(*++p));
                     if ((*p == '\'') || (*p == '"')) {
                         delim = *p++;