mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Remove preg_replace to hopefully fix segfault on long inputs, fixes #376
This commit is contained in:
@@ -125,6 +125,6 @@ class LineFormatter extends NormalizerFormatter
|
||||
return $str;
|
||||
}
|
||||
|
||||
return preg_replace('{[\r\n]+}', ' ', $str);
|
||||
return strtr($str, array("\r\n" => ' ', "\r" => ' ', "\n" => ' '));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user