mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +02:00
Fix issue processwire/processwire-issues#1595
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user