From 098e2b5ef7e5e4fe8653924b334f2dbdd0a6e841 Mon Sep 17 00:00:00 2001 From: jcid Date: Thu, 23 Oct 2008 20:55:15 +0200 Subject: - Made cookierc parsing more robust. --- ChangeLog | 7 ++++--- dpi/cookies.c | 3 +-- src/cookies.c | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 614f67e7..cf34ec5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,21 +4,22 @@ Dillo project dillo-2.1 ++- Added ipv6 addresses iteration and ipv4 fallback. + Patch: James Turner, Jorge Arellano +- Added support for numeric IPv6 addresses entered into the url bar. - Used the URL authority part instead of stripped default port in HTTP query. Patches: Justus Winter +- Fix for file inputs without values (forms). - Tuned input width a bit. - Cleaned up resource embedding (forms) + - Made cookierc parsing more robust. Patches: place (AKA corvid) +- Switched SSL enabled to configure.in (./configure --enable-ssl). Patch: Jeremy Henty +- Allowed compilation with older machines by removing a few C99isms. - Added use of inttypes.h when stdint.h isn't found. Patches: Dan Fandrich -+- Added ipv6 addresses iteration and ipv4 fallback. - Patch: James Turner, Jorge Arellano -+- Set the File menu label to hide when the File menu button is shown. ++- Set the File menu label to hide when the File menu-button is shown. ? Trying a new iconv() test in configure.in. Patch: Jorge Arellano diff --git a/dpi/cookies.c b/dpi/cookies.c index bfdf3b3d..63a1b7f8 100644 --- a/dpi/cookies.c +++ b/dpi/cookies.c @@ -1247,12 +1247,11 @@ static int Cookie_control_init(void) j = 0; /* Get the domain */ - while (!isspace(line[i])) + while (line[i] != '\0' && !isspace(line[i])) domain[j++] = line[i++]; domain[j] = '\0'; /* Skip past whitespaces */ - i++; while (isspace(line[i])) i++; diff --git a/src/cookies.c b/src/cookies.c index 1b336b83..b4843a1d 100644 --- a/src/cookies.c +++ b/src/cookies.c @@ -254,12 +254,11 @@ static int Cookie_control_init(void) j = 0; /* Get the domain */ - while (!isspace(line[i])) + while (line[i] != '\0' && !isspace(line[i])) domain[j++] = line[i++]; domain[j] = '\0'; /* Skip past whitespaces */ - i++; while (isspace(line[i])) i++; -- cgit v1.2.3