mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 21:01:30 +02:00
Escape double quotes
This commit is contained in:
parent
806a5aec91
commit
855c601f98
@ -1175,7 +1175,8 @@ class nextmatch_widget
|
|||||||
if (strpos($value,$separator) !== false || strpos($value,"\n") !== false || strpos($value,"\r") !== false)
|
if (strpos($value,$separator) !== false || strpos($value,"\n") !== false || strpos($value,"\r") !== false)
|
||||||
{
|
{
|
||||||
$value = '"'.str_replace(array('\\','"'),array('\\\\','\\"'),$value).'"';
|
$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;
|
$out[] = $value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user