After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 121765 - URL special characters in 0.14.2
URL special characters in 0.14.2
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.14.1
Other Linux
: Normal normal
: 0.14.3
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2003-09-08 17:07 UTC by Bill Baker
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bill Baker 2003-09-08 17:07:26 UTC
In Pan 0.14.2, if there is a URL with a backslash in it, such as:

http://www.cnsnews.com/ViewPolitics.asp?Page=\Politics\archive\200309\POL20030905a.html

only http://www.cnsnews.com/ViewPolitics.asp?Page= is clickable.
Comment 1 Christophe Lambin 2003-09-08 18:59:55 UTC
well, if I read RFC1738 correctly, that would be the correct (albeit
strict) behaviour, but I'm feeling tolerant today. :)

Fixed in CVS:
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/gmime&command=DIFF_FRAMESET&file=gmime-filter-html.c&rev1=1.8&rev2=1.9&root=/cvs/gnome
Comment 2 Bill Baker 2003-09-08 21:16:53 UTC
Thanks.  I was wondering, though, it doesn't look too complicated for
one to do oneself, except for the special_chars array.  How do you
determine which number in the array to change when you delete one of
the special characters?
Comment 3 Christophe Lambin 2003-09-08 21:57:03 UTC
The special_chars array is just an ascii table (0-255) of bitfields, 
with the IS_xxx() macros defining each bit.  In this case, I remove 
the IS_NON_URL bit (2<<1) from ascii character 92 ('\'), i.e. '\' is 
allowed in a URL.
Comment 4 Bill Baker 2003-09-09 06:18:13 UTC
Pardon me if I get this wrong, but is the basic upshot of what you're
saying to subtract 2 from the number in the array that is the
placeholder for the ASCII value?  For example, if I wanted to remove
the right curly bracket (}), I would change the 4 in the eighth line:

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 4, 0, 0,

to a 2?  Or for the pipe (|) change the 7 in the same line to a 5?
Comment 5 Bill Baker 2003-09-09 06:27:55 UTC
Please disregard about the right curly bracket...it's late and I
didn't realize what I was typing.
Comment 6 Bill Baker 2003-09-10 23:10:11 UTC
I hope you don't think I meant for you to ignore the whole question. 
Was I right about the pipe character?