diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index b2cff52a49..f15981e5b9 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -1175,7 +1175,8 @@ class nextmatch_widget if (strpos($value,$separator) !== false || strpos($value,"\n") !== false || strpos($value,"\r") !== false) { $value = '"'.str_replace(array('\\','"'),array('\\\\','\\"'),$value).'"'; - $value = str_replace("\r\n", "\n", $value); // to avoid early linebreak by Excel + // to avoid early linebreak by Excel, escape double quotes in text + $value = str_replace(array("\r\n", '"'), array("\n",'""'), $value); } $out[] = $value; }