1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 00:37:02 +02:00
This commit is contained in:
Ryan Cramer
2022-07-08 12:13:59 -04:00
parent 5d9ee59036
commit 03acb77306

View File

@@ -1774,6 +1774,8 @@ class Sanitizer extends Wire {
$options = array_merge($defaults, $options);
$newline = $options['newline'];
$value = $this->string($value);
if(!is_string($newline) || !strlen($newline)) $newline = ' ';
if(strpos($value, "\r") !== false) {
// normalize newlines