From: <pdo...@us...> - 2024-09-16 11:28:09
|
Revision: 15026 http://sourceforge.net/p/squirrelmail/code/15026 Author: pdontthink Date: 2024-09-16 11:28:08 +0000 (Mon, 16 Sep 2024) Log Message: ----------- Don't need to decode empty string/NULL Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/mime.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2024-09-16 10:57:33 UTC (rev 15025) +++ branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2024-09-16 11:28:08 UTC (rev 15026) @@ -679,6 +679,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'])) { $string = $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. |