[Tickets #8140] Xfilter failed when the subject contains quote

bugs at horde.org bugs at horde.org
Wed Apr 1 15:02:54 UTC 2009


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

Ticket URL: http://bugs.horde.org/ticket/8140
------------------------------------------------------------------------------
  Ticket             | 8140
  Created By         | gerard.breiner at ias.u-psud.fr
  Summary            | Xfilter failed when the subject contains quote
  Queue              | Ingo
  Version            | 1.2.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


gerard.breiner at ias.u-psud.fr (2009-04-01 11:02) wrote:

Xfilter failed when a quote is contained in the subject.

I solved this by modifying ingo/lib/scripts/maildrop.php
It works by added a second quote.. I have commented  the bad line  
"xfilter ...." and  added the lines as follow.

[CODE]
$subject = MIME::encode($params['action-value']['subject'],NLS::getCharset());
			$quote = "'";
			$replace = "''";
			$subject = str_replace($quote,$replace,$subject);

             //$xfilter = '  xfilter "reformail -r -t -I \'From: ' .  
$from . '\' -I \'Subject: ' .  
MIME::encode($params['action-value']['subject'], NLS::getCharset())  .  
"'";

	 $xfilter = '  xfilter "reformail -r -t -I \'From: ' . $from . '\' -I  
\'Subject: ' .$subject. "'";
[/CODE]

Best regards

Gerard Breiner






More information about the bugs mailing list