From: <pdo...@us...> - 2023-04-13 05:54:54
|
Revision: 14989 http://sourceforge.net/p/squirrelmail/code/14989 Author: pdontthink Date: 2023-04-13 05:54:53 +0000 (Thu, 13 Apr 2023) Log Message: ----------- Don't str_replace() on null values Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/options.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/options.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/options.php 2023-04-13 05:28:58 UTC (rev 14988) +++ branches/SM-1_4-STABLE/squirrelmail/functions/options.php 2023-04-13 05:54:53 UTC (rev 14989) @@ -1235,7 +1235,7 @@ // all other widgets except TEXTAREAs should never be allowed to have newlines // - else if ($option->type != SMOPT_TYPE_TEXTAREA) + else if ($option->type != SMOPT_TYPE_TEXTAREA && !empty($option->new_value)) $option->new_value = str_replace(array("\r", "\n"), '', $option->new_value); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |