From: <pdo...@us...> - 2024-09-16 11:31:31
|
Revision: 15027 http://sourceforge.net/p/squirrelmail/code/15027 Author: pdontthink Date: 2024-09-16 11:31:30 +0000 (Mon, 16 Sep 2024) Log Message: ----------- Don't need to decode empty string/NULL Modified Paths: -------------- trunk/squirrelmail/functions/mime.php Modified: trunk/squirrelmail/functions/mime.php =================================================================== --- trunk/squirrelmail/functions/mime.php 2024-09-16 11:28:08 UTC (rev 15026) +++ trunk/squirrelmail/functions/mime.php 2024-09-16 11:31:30 UTC (rev 15027) @@ -843,6 +843,10 @@ $string = implode("\n", $string); } + // loose type checking also catches $string === NULL here: + if ($string == '') + return ''; + if (isset($languages[$squirrelmail_language]['XTRA_CODE']) && function_exists($languages[$squirrelmail_language]['XTRA_CODE'] . '_decodeheader')) { $string = call_user_func($languages[$squirrelmail_language]['XTRA_CODE'] . '_decodeheader', $string); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |