diff --git a/Template.php b/Template.php index 21e186ea25..c2c95dc348 100644 --- a/Template.php +++ b/Template.php @@ -6695,6 +6695,17 @@ public function tidy_parameter(string $param): void return; + case 'quote': + $quote = $this->get('quote'); + if ($quote === '') { + return; + } + $quote_out = safe_preg_replace('~[\n\r]+~', ' ', $quote); + if ($quote_out !== $quote && $quote_out !== '') { + $this->set('quote', $quote_out); + } + return; + case 'quotes': switch (strtolower(trim($this->get($param)))) { case 'yes':