[Tickets #4854] Re: Cannot filter spam if from address has illegal apostrophe (')

bugs@bugs.horde.org bugs at bugs.horde.org
Thu Jan 18 12:21:44 PST 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4854
-----------------------------------------------------------------------
 Ticket             | 4854
 Updated By         | qa at cpanel.net
 Summary            | Cannot filter spam if from address has illegal apostrophe (')
 Queue              | Ingo
 Version            | 1.1.1
 Type               | Bug
 State              | Not A Bug
 Priority           | 2. Medium
 Owners             | 
+New Attachment     | Search.quote.patch
-----------------------------------------------------------------------


qa at cpanel.net (2007-01-18 12:21) wrote:

The problem is in lib/Horde/IMAP/Search.php line 539. The addslashes
function is used to escape characters in the email address, which means
the email address in this instance no longer matches what is on the IMAP
server.

The attached patch 'fixes' this by removing the addslashes function and
using str_replace to only escape double quotes (since a double quoted
string is being built).




More information about the bugs mailing list