mirror of
https://github.com/JLiscom/OpenNote.git
synced 2026-04-25 08:15:48 +03:00
[GH-ISSUE #70] Error with HTML entities #61
Labels
No labels
bug
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OpenNote-JLiscom#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mioux on GitHub (Jul 16, 2014).
Original GitHub issue: https://github.com/JLiscom/OpenNote/issues/70
I have posted a note with Google Chrome entitled "A télécharger" (which is correctly stored as "A télécharger")
When opening the note, HTML entities are correctly displayed, but not in preview...
Here is the error
In this screen, it is correct

@JLiscom commented on GitHub (Jul 16, 2014):
Will track down
@mioux commented on GitHub (Jul 16, 2014):
For this one, I've found a workaround (I don't have tested the security of it)
In Service/model/pdo/Model.php, line 142
array($note->folderID,$note->originNoteID,htmlentities($note->title),htmlentities($note->note), $note->userID));//parse out for mys
ql use
replaced by
array($note->folderID,$note->originNoteID,$note->title,htmlentities($note->note), $note->userID));//parse out for mys
ql use
(I have removed htmlentities for the note title)
@JLiscom commented on GitHub (Jul 17, 2014):
@mioux
Not all flows decoded.
The patch above should fix that.
@mioux commented on GitHub (Jul 17, 2014):
Tested : OK (I have removed my modification before patching)