SA Bugzilla – Bug 240
HTTP_ESCAPED_HOST can catch non-URLs
Last modified: 2002-06-15 03:58:08 UTC
I received a message which triggered HTTP_ESCAPED_HOST due to the signature in the message: % Moderator: rec.arts.sf.tv.babylon5.moderated, soc.personals % % http://www.grumpywitch.org % % Arizona Polyamory Info http://www.grumpywitch.org/azpoly.html % The problem is that the regexp: /^https?\:\/\/[^\/]*%/ doesn't look for non-host characters in the URL, specifically : and whitespace. The fix is to replace the regexp with: /https?\:\/\/[^\/\s:]*%/
Oops. that regexp should be: /^https?\:\/\/[^\/\s:]*%/
Subject: Re: [SAdev] HTTP_ESCAPED_HOST can catch non-URLs -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 21 Apr 2002 8:04 pm, bugzilla-daemon@hughes-family.org wrote: > http://www.hughes-family.org/bugzilla/show_bug.cgi?id=240 > > > > > > ------- Additional Comments From felicity@kluge.net 2002-04-21 12:04 > ------- Oops. that regexp should be: > > /^https?\:\/\/[^\/\s:]*%/ What version did you see this bug with? It shouldn't happen since the change to use uri tests. - -- Matt. <:->get a SMart net</:-> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8w9SO5tFry5Ir+lARAlb6AJsEEc32LWJJldRsji8tw1jyqD54DwCeOtEu yRXo3ySo2C5bvshZx6lp2wY= =6eZ/ -----END PGP SIGNATURE-----
Subject: Re: [SAdev] HTTP_ESCAPED_HOST can catch non-URLs -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 21 Apr 2002 8:04 pm, bugzilla-daemon@hughes-family.org wrote: > http://www.hughes-family.org/bugzilla/show_bug.cgi?id=240 > > > > > > ------- Additional Comments From felicity@kluge.net 2002-04-21 12:04 > ------- Oops. that regexp should be: > > /^https?\:\/\/[^\/\s:]*%/ What version did you see this bug with? It shouldn't happen since the change to use uri tests. - -- Matt. <:->get a SMart net</:-> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8w9SO5tFry5Ir+lARAlb6AJsEEc32LWJJldRsji8tw1jyqD54DwCeOtEu yRXo3ySo2C5bvshZx6lp2wY= =6eZ/ -----END PGP SIGNATURE----- _______________________________________________ Spamassassin-devel mailing list Spamassassin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spamassassin-devel
Subject: Re: HTTP_ESCAPED_HOST can catch non-URLs On Mon, Apr 22, 2002 at 02:17:10AM -0700, bugzilla-daemon@hughes-family.org wrote: > > /^https?\:\/\/[^\/\s:]*%/ > > What version did you see this bug with? It shouldn't happen since the change > to use uri tests. This was with 2.11. I wasn't aware that 2.20 changed how URLs are parsed out of the message since this one is done using a rawbody check. Oh well, as long as it works. :) (I did find another bug while checking out 2.20, so I'll go file that one.)
Looks like this one is fixed in 2.20