1
0
mirror of https://github.com/php/phd.git synced 2026-03-23 22:52:05 +01:00

Fix deprecated fgetcsv usage by explicitly passing escape parameter (#232)

This commit is contained in:
Louis-Arnaud
2026-01-11 21:31:16 +01:00
committed by GitHub
parent b7b9b845e5
commit 43855fa7b2

View File

@@ -80,7 +80,11 @@ class Package_PHP_EnhancedCHM extends Package_PHP_CHM
$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