svn: /web/php-news/trunk/ article.php

From: Date: Mon, 16 May 2011 07:55:57 +0000
Subject: svn: /web/php-news/trunk/ article.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11008@lists.php.net to get a copy of this message
shein Mon, 16 May 2011 07:55:57 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311070 Log: Fixed incorrect handling of base64-encoded letters with linux line endings (\n) which caused hiding letter's body text on doc-ru (fixes #54077). Bug: http://bugs.php.net/54077 (Assigned) Empty messages in RU mailing list Changed paths: U web/php-news/trunk/article.php Modified: web/php-news/trunk/article.php =================================================================== --- web/php-news/trunk/article.php 2011-05-16 02:19:54 UTC (rev 311069) +++ web/php-news/trunk/article.php 2011-05-16 07:55:57 UTC (rev 311070) @@ -161,7 +161,7 @@ $line = $linebuf . $line; - if (substr($line, -2) == "\r\n") { + if (in_array(substr($line, -1), array("\n", "\r"))) { $linebuf = ''; } else { $linebuf = $line;

« previous php.webmaster (#11008) next »