mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-23 22:42:38 +01:00
Remove preg_replace to hopefully fix segfault on long inputs, fixes #376
This commit is contained in:
parent
0d09e2f8a0
commit
43ca6dc06b
@ -125,6 +125,6 @@ class LineFormatter extends NormalizerFormatter
|
||||
return $str;
|
||||
}
|
||||
|
||||
return preg_replace('{[\r\n]+}', ' ', $str);
|
||||
return strtr($str, array("\r\n" => ' ', "\r" => ' ', "\n" => ' '));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user