Commit 40d6767d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Tackle another XML/ESI syntax error corner-case:

	<esi:include  src= />
would result in a NUL byte when looking for the next attribute.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2926 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 90ddd712
......@@ -189,6 +189,7 @@ static int
esi_attrib(const struct esi_work *ew, txt *in, txt *attrib, txt *val)
{
AN(*in->b);
/* Skip leading blanks */
while(in->b < in->e && isspace(*in->b))
in->b++;
......@@ -224,6 +225,13 @@ esi_attrib(const struct esi_work *ew, txt *in, txt *attrib, txt *val)
/* skip '=' */
in->b++;
if (isspace(*in->b)) {
val->e = val->b = in->b;;
*val->e = '\0';
in->b++;
return (1);
}
/* Value, if any ? */
*val = *in;
if (in->b >= in->e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment