]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
loop in checking response headers
authorEric Covener <covener@apache.org>
Sat, 3 Dec 2016 00:10:31 +0000 (00:10 +0000)
committerEric Covener <covener@apache.org>
Sat, 3 Dec 2016 00:10:31 +0000 (00:10 +0000)
w/ HTTPProtocolOptions Unsafe

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1772418 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_filters.c

index 3971e3d10ee3197388c0ad44452ca1ec3bd79666..85cae017b00ab5138a88b0e9a931459e494bb8db 100644 (file)
@@ -667,6 +667,7 @@ static int check_header(void *arg, const char *name, const char *val)
         /* Simply terminate scanning on a CTL char, allowing whitespace */
         test = val;
         do {
+            while (*test == ' ' || *test == '\t') test++;
             test = ap_scan_vchar_obstext(test);
         } while (*test == ' ' || *test == '\t');
     }