Skip to content

Commit 43855fa

Browse files
authored
Fix deprecated fgetcsv usage by explicitly passing escape parameter (#232)
1 parent b7b9b84 commit 43855fa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

phpdotnet/phd/Package/PHP/EnhancedCHM.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ public function update($event, $value = null) {
8080
$this->outputHandler->v('Preparing usernotes.', VERBOSE_MESSAGES);
8181

8282
// Decompress the 'all' file into single files - one file per sectionid.
83-
while($fpNotes && !feof($fpNotes) && false !== ($userNote = fgetcsv($fpNotes, 0, '|'))) {
83+
while (
84+
$fpNotes
85+
&& !feof($fpNotes)
86+
&& false !== ($userNote = fgetcsv($fpNotes, 0, '|', '"', '\\'))
87+
) {
8488
// Usernote index
8589
// 0 = Note ID
8690
// 1 = Section ID

0 commit comments

Comments
 (0)