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