]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Fixed bug in parsing of quoted string with escape sequences.
authorStephan Bosch <stephan@rename-it.nl>
Tue, 1 Jul 2014 20:24:08 +0000 (23:24 +0300)
committerStephan Bosch <stephan@rename-it.nl>
Tue, 1 Jul 2014 20:24:08 +0000 (23:24 +0300)
src/lib-http/http-parser.c

index 961cc2ca0257c1f9adcb68328afb73c4ee9d9875..fea8dc128d6184e2fa8d9a2f90ee715ecdedc03a 100644 (file)
@@ -175,6 +175,7 @@ int http_parse_quoted_string(struct http_parser *parser, const char **str_r)
                        if (parser->cur >= parser->end || !http_char_is_text(*parser->cur))
                                return -1;
                        str_append_c(str, *parser->cur);
+                       parser->cur++;
 
                /* ERROR */
                } else {