Tried this and tested in a case where my Node title contained an apostrophe, e.g. "Joe's"
menu_token menu link output result: "Edit Joe's"
screen captures attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | menu_token-special-chars-2343693-2.patch | 457 bytes | ericclaeren |
| Screen Shot 2014-09-23 at 1.47.43 PM.png | 5.72 KB | emjayess | |
| Screen Shot 2014-09-23 at 1.47.55 PM.png | 4.27 KB | emjayess |
Comments
Comment #1
emjayess commentedComment #2
ericclaeren commentedHi, I have made a patch, current-user:name has a check plain, but seems like menu is also sanitizing the link and this creates a double encoding.
Hence to can put a h2 in a menu link title, the extra sanitizing hasn't got much purpose, so we might as well disable it.
Have tried it with the token in the url with a " and it doesn't break.
Could you look and test this patch?
Comment #3
tessa bakkerWorks nice with title and path.
Tested with
&<b></b>javascript:alert('yeah')Comment #5
develcuy commentedThanks for the patch!
EVERYONE, please help me test this patch. If somebody complains I'll revert it.
Comment #6
garchris commentedTried 7.x-1.0-beta7 and 7.x-1.x-dev. Still experiencing this problem.
Comment #7
develcuy commented@ReboundToday, thanks for reporting! What symbols are you entering?
Comment #8
develcuy commented