Skip to content

Commit

Permalink
Fixed issue: Control characters break XML export
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Sep 21, 2016
1 parent 8260bd3 commit c63cba4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/third_party/xlsx_writer/xlsxwriter.class.php
Expand Up @@ -582,6 +582,7 @@ public static function sanitize_filename($filename) //http://msdn.microsoft.com/
//------------------------------------------------------------------
public static function xmlspecialchars($val)
{
$val=preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x80-\x9F]/u', '', $val);
return str_replace("'", "'", htmlspecialchars($val));
}
//------------------------------------------------------------------
Expand Down

0 comments on commit c63cba4

Please sign in to comment.