httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1584884 - /httpd/httpd/trunk/modules/filters/mod_proxy_html.c
Date Fri, 04 Apr 2014 20:17:46 GMT
Author: jailletc36
Date: Fri Apr  4 20:17:46 2014
New Revision: 1584884

URL: http://svn.apache.org/r1584884
Log:
Do not scan past the end of the buffer.
If no terminating delimiter is found, just leave things as it is

Modified:
    httpd/httpd/trunk/modules/filters/mod_proxy_html.c

Modified: httpd/httpd/trunk/modules/filters/mod_proxy_html.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_proxy_html.c?rev=1584884&r1=1584883&r2=1584884&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_proxy_html.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_proxy_html.c Fri Apr  4 20:17:46 2014
@@ -677,7 +677,10 @@ static meta *metafix(request_rec *r, con
                     while (*p && apr_isspace(*++p));
                     if ((*p == '\'') || (*p == '"')) {
                         delim = *p++;
-                        for (q = p; *q != delim; ++q);
+                        for (q = p; *q && *q != delim; ++q);
+                        /* No terminating delimiter found? Skip the boggus directive */
+                        if (*q != delim)
+                           break;
                     } else {
                         for (q = p; *q && !apr_isspace(*q) && (*q != '>');
++q);
                     }



Mime
View raw message