Commit f2a3cf11 authored by Côme Chilliet's avatar Côme Chilliet Committed by Benoit Mortier
Browse files

Fixes #4148 fixed handling of newlines in template values

parent 702b480f
......@@ -297,7 +297,7 @@ class plugin
}
/* First remove all concerned values */
foreach ($template_attrs['fdTemplateField'] as $key => $value) {
preg_match('/^([^:]+):(.*)$/', $value, $m);
preg_match('/^([^:]+):(.*)$/s', $value, $m);
if (isset($this->attrs[$m[1]])) {
unset($template_attrs['fdTemplateField'][$key]);
}
......@@ -626,7 +626,7 @@ class plugin
sort($template_attrs['fdTemplateField']);
$attrs = array();
foreach ($template_attrs['fdTemplateField'] as $field) {
preg_match('/^([^:]+):(.*)$/', $field, $m);
preg_match('/^([^:]+):(.*)$/s', $field, $m);
if (isset($attrs[$m[1]])) {
$attrs[$m[1]][] = $m[2];
$attrs[$m[1]]['count']++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment