From 7c0f9f7e24398c4af99643d2c6d52b6f8a2306c0 Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Tue, 2 Nov 2010 01:49:51 +0100 Subject: [PATCH] Fix Surrogate-Control header parser of name=value tags. --- src/HttpHdrSc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HttpHdrSc.cc b/src/HttpHdrSc.cc index 2e8a9ee09e..3ee98faf55 100644 --- a/src/HttpHdrSc.cc +++ b/src/HttpHdrSc.cc @@ -128,8 +128,9 @@ httpHdrScParseInit(HttpHdrSc * sc, const String * str) /* decrease ilen to still match the token for '=' statements */ if ((p = strchr(item, '=')) && (p - item < ilen)) { - vlen = ilen - (++p - item); + vlen = ilen - (p + 1 - item); ilen = p - item; + p++; } /* decrease ilen to still match the token for ';' qualified non '=' statments */ -- 2.47.2