mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
c0418db9ba
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class type_cast_helper implements \phpbb\request\type_cast_helper_interface
|
|||
|
||||
if ($type == 'string')
|
||||
{
|
||||
$result = str_replace(array("\r\n", "\r", "\0"), array("\n", "\n", ''), $result);
|
||||
$result = strtr($result, ["\r\n" => "\n", "\r" => "\n", "\0" => '', "\u{FEFF}" => '']);
|
||||
|
||||
if ($trim)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue