Do not scan past the end of the buffer.
If no terminating delimiter is found, just leave things as it is
Submitted by: jailletc36
Reviewed/backported by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1587692 13f79535-47bb-0310-9956-
ffa450edef68
2.4.x patch: trunk patch works (modulo CHANGES)
+1: jailletc36, jim, ylavic
- * mod_proxy_html: Do not scan past the end of the buffer.
- trunk patch: https://svn.apache.org/r1584884
- 2.4.x patch: trunk patch works
- +1: jailletc36, jim, ylavic
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
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);
}