You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2014/04/04 22:17:46 UTC
svn commit: r1584884 - /httpd/httpd/trunk/modules/filters/mod_proxy_html.c
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);
}