[sylpheed:32055] paren in a URI unrecognized
Rich Coe
Richard.Coe at med.ge.com
Tue Jan 29 02:19:50 JST 2008
Hi Hiro,
I received an email with a http:// URL that correctly contained parentheses, but sylpheed
stops recognizing the URL at the open parentheses. According to RFC2396, parentheses are
valid URI/URL characters.
http://www.infortrend.com/main/2_product/es_b12s-r(g)1030.asp
diff -urNp ../sylpheed-2.4.7/libsylph/utils.c libsylph/utils.c
--- ../sylpheed-2.4.7/libsylph/utils.c 2008-01-28 11:07:05.000000000 -0600
+++ libsylph/utils.c 2007-10-17 20:35:55.000000000 -0500
@@ -1752,7 +1755,7 @@ gint get_uri_len(const gchar *str)
if (is_uri_string(str)) {
for (p = str; *p != '\0'; p++) {
- if (!g_ascii_isgraph(*p) || strchr("<>\"", *p))
+ if (!g_ascii_isgraph(*p) || strchr("()<>\"", *p))
break;
}
return p - str;
diff -urNp ../sylpheed-2.4.7/src/textview.c src/textview.c
--- ../sylpheed-2.4.7/src/textview.c 2008-01-28 11:13:48.000000000 -0600
+++ src/textview.c 2007-05-17 21:26:20.000000000 -0500
@@ -898,7 +898,7 @@ static gboolean get_uri_part(const gchar
for (ep_ = scanpos; *ep_ != '\0'; ep_++) {
if (!g_ascii_isgraph(*ep_) ||
!isascii(*(const guchar *)ep_) ||
- strchr("<>{}[]\"", *ep_))
+ strchr("()<>{}[]\"", *ep_))
break;
}
Rich
More information about the Sylpheed
mailing list