mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
Merge pull request #5937 from mrgoldy/ticket/16422
[ticket/16422] Strip BOM characters
This commit is contained in:
commit
66990474b9
@ -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…
x
Reference in New Issue
Block a user