diff options
| author | Randy Morgan <[email protected]> | 2012-06-18 19:17:32 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-06-18 19:17:32 +0900 |
| commit | c73c15cedd33c23e55965db1c335c2fa8c44f438 (patch) | |
| tree | f7e1225fdd15a5a18a8a02e52348c2324c3c8e68 /lib | |
| parent | 84859056e05b96f0ef856dfec2a08a21342d3b95 (diff) | |
| download | caxlsx-c73c15cedd33c23e55965db1c335c2fa8c44f438.tar.gz caxlsx-c73c15cedd33c23e55965db1c335c2fa8c44f438.zip | |
properly remove invalid XML characters \u2028\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u001f
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/worksheet.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb index 741e38b1..51613f75 100644 --- a/lib/axlsx/workbook/worksheet/worksheet.rb +++ b/lib/axlsx/workbook/worksheet/worksheet.rb @@ -541,7 +541,8 @@ module Axlsx end str.concat '</dataValidations>' end - str + '</worksheet>' + str.concat '</worksheet>' + str.tr("\u0000-\u001f\u007f\u0028", '') end # The worksheet relationships. This is managed automatically by the worksheet |
