From 855c601f981102a381a079293bc2e90bd6e362a8 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 17 Dec 2010 16:45:57 +0000 Subject: [PATCH] Escape double quotes --- etemplate/inc/class.nextmatch_widget.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }