From: Marc G. K. <ma...@it...> - 2002-08-14 18:06:03
|
Sorry, there is a bug in this update, I fix this tomorrow (No CVS access right now). If somebody lese want to fix it I show you where the bug is below. > Update of /cvsroot/squirrelmail/squirrelmail/functions > In directory usw-pr-cvs1:/tmp/cvs-serv29573 > > Modified Files: > smtp.php > Log Message: > > quick fix for incorrect reference headers > > > Index: smtp.php > =================================================================== > RCS file: /cvsroot/squirrelmail/squirrelmail/functions/smtp.php,v > retrieving revision 1.167 > retrieving revision 1.168 > diff -u -w -r1.167 -r1.168 > --- smtp.php 8 Aug 2002 18:54:28 -0000 1.167 > +++ smtp.php 14 Aug 2002 16:47:54 -0000 1.168 > @@ -749,12 +749,21 @@ > $refer = ""; > for ($i=1;$i<count($refs[0]);$i++) { > if (!empty($refs[0][$i])) { > - if (preg_match("/^References:(.+)$/", $refs[0][$i], $regs)) { > + if (preg_match("/^References:(.+)$/UA", $refs[0][$i], $regs)) { > $refer = trim($regs[1]); > } > else { > - $refer .= ' ' . trim($refs[0][$i]); > + $refer .= ' ' . trim($regs[1]); > } > + > + } > + } Only the part below should be commited, the code above is wrong. > + $refer_a = explode(' ', $refer); > + $refer = ''; > + foreach ($refer_a as $ref) { > + $ref = trim($ref); > + if ($ref{0} == '<' && $ref{(strlen($ref)-1)} == '>') { > + $refer .= $ref . ' '; > } > } > $refer = trim($refer); > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code=31 > -- > squirrelmail-cvs mailing list > List Address: squ...@li... > List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs > http://squirrelmail.org/cvs > |