From fd3dd9170a6db205f85118dd68d590dc2ee58034 Mon Sep 17 00:00:00 2001 From: Stanislas Kita Date: Tue, 25 Nov 2025 09:09:36 +0100 Subject: [PATCH] Fix(Core): fix truncated CSV export --- CHANGELOG.md | 1 + inc/modelcsv.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a3c16e9..ff21551c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fix truncated CSV export - Fix injection for `groups_id` and `groups_id_tech` fields - Fix missing `purge` action - Fix user fields nullability to prevent SQL errors during injection diff --git a/inc/modelcsv.class.php b/inc/modelcsv.class.php index 18e41298..93000163 100644 --- a/inc/modelcsv.class.php +++ b/inc/modelcsv.class.php @@ -127,7 +127,7 @@ public function showSample(PluginDatainjectionModel $model) ); header('Content-Type: text/comma-separated-values'); header('Content-Transfer-Encoding: UTF-8'); - header('Content-Length: ' . mb_strlen($sample, 'UTF-8')); + header('Content-Length: ' . strlen($sample)); header('Pragma: no-cache'); header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); header('Expires: 0');