From bb6e7097e051541c60614330316bef5623c03e0a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 7 Mar 2001 15:39:54 +0000 Subject: Fix an off-by-one in the "is this for real?" check so that "http:// " * e-html-utils.c (url_extract): Fix an off-by-one in the "is this for real?" check so that "http:// " won't get URLified svn path=/trunk/; revision=8581 --- e-util/ChangeLog | 5 +++++ e-util/e-html-utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'e-util') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index cff7183efa..7ac47969e5 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2001-03-07 Dan Winship + + * e-html-utils.c (url_extract): Fix an off-by-one in the "is this + for real?" check so that "http:// " won't get URLified + 2001-03-04 Damon Chaplin * e-time-utils.[hc]: new files to contain functions to parse and diff --git a/e-util/e-html-utils.c b/e-util/e-html-utils.c index e63b233676..41a5a25d3b 100644 --- a/e-util/e-html-utils.c +++ b/e-util/e-html-utils.c @@ -55,7 +55,7 @@ url_extract (const unsigned char **text, gboolean check) if (check) { /* Make sure we weren't fooled. */ p = memchr (*text, ':', end - *text); - if (!p || end - p < 3) + if (!p || end - p < 4) return NULL; } -- cgit v1.2.3