Skip to content

Commit 4358937

Browse files
authored
Fix(Core): fix truncated CSV export (#556)
1 parent f74cb22 commit 4358937

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Fixed
1111

12+
- Fix truncated CSV export
1213
- Fix injection for `groups_id` and `groups_id_tech` fields
1314
- Fix missing `purge` action
1415
- Fix user fields nullability to prevent SQL errors during injection

inc/modelcsv.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function showSample(PluginDatainjectionModel $model)
127127
);
128128
header('Content-Type: text/comma-separated-values');
129129
header('Content-Transfer-Encoding: UTF-8');
130-
header('Content-Length: ' . mb_strlen($sample, 'UTF-8'));
130+
header('Content-Length: ' . strlen($sample));
131131
header('Pragma: no-cache');
132132
header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
133133
header('Expires: 0');

0 commit comments

Comments
 (0)