From 7523575107e82c617e11ee606e50c9bd4a385133 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Thu, 8 Jan 2026 17:24:28 +0100 Subject: [PATCH] Fix deprecated fgetcsv usage by explicitly passing escape parameter --- phpdotnet/phd/Package/PHP/EnhancedCHM.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpdotnet/phd/Package/PHP/EnhancedCHM.php b/phpdotnet/phd/Package/PHP/EnhancedCHM.php index 25532a10..6b61b3ee 100644 --- a/phpdotnet/phd/Package/PHP/EnhancedCHM.php +++ b/phpdotnet/phd/Package/PHP/EnhancedCHM.php @@ -75,7 +75,11 @@ public function update($event, $value = null) { $this->outputHandler->v('Preparing usernotes.', VERBOSE_MESSAGES); // Decompress the 'all' file into single files - one file per sectionid. - while($fpNotes && !feof($fpNotes) && false !== ($userNote = fgetcsv($fpNotes, 0, '|'))) { + while ( + $fpNotes + && !feof($fpNotes) + && false !== ($userNote = fgetcsv($fpNotes, 0, '|', '"', '\\')) + ) { // Usernote index // 0 = Note ID // 1 = Section ID