Merge pull request #14972 from code-chicken/patch-7

Fix for #14957 and probably a lot of other issues
This commit is contained in:
Laurent Destailleur 2020-10-09 13:55:29 +02:00 committed by GitHub
commit 85a9714d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,7 @@ class Odf
*/
public function convertVarToOdf($value, $encode = true, $charset = 'ISO-8859')
{
$value = $encode ? htmlspecialchars($value) : $value;
$value = ($charset == 'ISO-8859') ? utf8_encode($value) : $value;
$convertedValue = $value;