1
0
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:
Jordi Boggiano 2014-09-30 12:27:43 +01:00
parent 0d09e2f8a0
commit 43ca6dc06b

View File

@ -125,6 +125,6 @@ class LineFormatter extends NormalizerFormatter
return $str;
}
return preg_replace('{[\r\n]+}', ' ', $str);
return strtr($str, array("\r\n" => ' ', "\r" => ' ', "\n" => ' '));
}
}