From: <pdo...@us...> - 2023-04-13 05:56:41
|
Revision: 14990 http://sourceforge.net/p/squirrelmail/code/14990 Author: pdontthink Date: 2023-04-13 05:56:39 +0000 (Thu, 13 Apr 2023) Log Message: ----------- Don't str_replace() on null values Modified Paths: -------------- trunk/squirrelmail/functions/options.php Modified: trunk/squirrelmail/functions/options.php =================================================================== --- trunk/squirrelmail/functions/options.php 2023-04-13 05:54:53 UTC (rev 14989) +++ trunk/squirrelmail/functions/options.php 2023-04-13 05:56:39 UTC (rev 14990) @@ -1006,7 +1006,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. |