SA Bugzilla – Bug 205
URI_IS_POUND fixes
Last modified: 2002-06-15 03:58:08 UTC
Boy, this'll learn me to make test cases for stuff I add. Two problems: - The URI_IS_POUND pattern didn't take into account the prepending of the base URL or "http://"; it should test for "/\#$" (a slash followe by a pound at the very end of an URI), rather than "^\#$" (a pound all by itself, which will never happen because of the prepending). - URI extraction regexps that do_body_uri_tests() of PerMsgStatus.pm uses needed to have the "#" symbol added to the list of reserved characters for things like "http://#" to be picked up by the URI tests.
Created attachment 64 [details] URI_IS_POUND fixes
Created attachment 65 [details] Modified patch to catch more instances
Commited my modified patch to CVS. I was going to add some tests too, but there are problems putting #'s in test strings, because the rule parser thinks they're comments. And I'm too tired to reliably change the rule parser right now, days before a release.