mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-12 18:45:20 +02:00
Merge branch '3.3.x'
This commit is contained in:
commit
c0418db9ba
@ -36,7 +36,7 @@ class type_cast_helper implements \phpbb\request\type_cast_helper_interface
|
|||||||
|
|
||||||
if ($type == 'string')
|
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)
|
if ($trim)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user