GNOME Bugzilla – Bug 121765
URL special characters in 0.14.2
Last modified: 2004-12-22 21:47:04 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.
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
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?
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.
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?
Please disregard about the right curly bracket...it's late and I didn't realize what I was typing.
I hope you don't think I meant for you to ignore the whole question. Was I right about the pipe character?