Revision: 12426
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12426&view=rev
Author: kink
Date: 2007-05-30 11:52:34 -0700 (Wed, 30 May 2007)
Log Message:
-----------
fix POP3 class to properly cope with dots as specified
in the RFC, thanks Tomas Kuliavas. Closes: #1621267
Modified Paths:
--------------
branches/SM-1_4-STABLE/squirrelmail/ChangeLog
branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/class.POP3.php
Modified: branches/SM-1_4-STABLE/squirrelmail/ChangeLog
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/ChangeLog 2007-05-30 18:30:27 UTC
(rev 12425)
+++ branches/SM-1_4-STABLE/squirrelmail/ChangeLog 2007-05-30 18:52:34 UTC
(rev 12426)
@@ -8,6 +8,7 @@
- Fix display of X-Priority in message view.
- Work around mailers sending broken Date headers with no space after the
first comma.
+ - Let POP3 class properly cope with lines starting with a '.'.
Version 1.4.10a - 10 May 2007
-----------------------------
Modified: branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/class.POP3.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/class.POP3.php
2007-05-30 18:30:27 UTC (rev 12425)
+++ branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/class.POP3.php
2007-05-30 18:52:34 UTC (rev 12426)
@@ -366,6 +366,7 @@
$line = fgets($fp,$buffer);
while ( !ereg("^\.\r\n",$line))
{
+ if ( $line{0} == '.' ) { $line = substr($line,1); }
$MsgArray[$count] = $line;
$count++;
$line = fgets($fp,$buffer);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
|