aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-03-07 23:39:54 +0800
committerDan Winship <danw@src.gnome.org>2001-03-07 23:39:54 +0800
commitbb6e7097e051541c60614330316bef5623c03e0a (patch)
treeaa379a7c5304827f1710b3d10a7ad847d7689c1f
parent0d719990521adf12e458fb193c679b8378aa3a55 (diff)
downloadgsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.tar
gsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.tar.gz
gsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.tar.bz2
gsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.tar.lz
gsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.tar.xz
gsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.tar.zst
gsoc2013-evolution-bb6e7097e051541c60614330316bef5623c03e0a.zip
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
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-html-utils.c2
2 files changed, 6 insertions, 1 deletions
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 <danw@ximian.com>
+
+ * 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 <damon@ximian.com>
* 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;
}