diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | dpi/cookies.c | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -56,6 +56,7 @@ dillo-2.2 [??] - Enable popup menu below bottom of page content (BUG#856). - Handle JPEGs with CMYK color space. - Allow keysyms in keysrc. + - Improve cookie attribute value parsing (BUG 819) Patches: corvid +- Support for the letter-spacing property. Patch: Johannes Hofmann, corvid diff --git a/dpi/cookies.c b/dpi/cookies.c index cf0cecf0..36052829 100644 --- a/dpi/cookies.c +++ b/dpi/cookies.c @@ -769,8 +769,12 @@ static char *Cookies_parse_value(char **cookie_str, case ' ': case '\t': if (!broken_syntax && str[0] != '\'' && str[0] != '"') { - *cookie_str = str + i + 1; end = 1; + *cookie_str = str + i + 1; + while (**cookie_str == ' ' || **cookie_str == '\t') + *cookie_str += 1; + if (**cookie_str == ';') + *cookie_str += 1; } break; case '\'': |