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.

Comments

emjayess’s picture

Issue summary: View changes
ericclaeren’s picture

StatusFileSize
new457 bytes

Hi, 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?

tessa bakker’s picture

Status: Active » Reviewed & tested by the community

Works nice with title and path.

Tested with

  1. &
  2. <b></b>
  3. javascript:alert('yeah')

  • develCuy committed dc001d9 on 7.x-1.x authored by ericclaeren
    Issue #2343693 by ericclaeren, Tessa Bakker: Improperly Escaping Special...
develcuy’s picture

Status: Reviewed & tested by the community » Needs review

Thanks for the patch!

EVERYONE, please help me test this patch. If somebody complains I'll revert it.

garchris’s picture

Tried 7.x-1.0-beta7 and 7.x-1.x-dev. Still experiencing this problem.

develcuy’s picture

Version: 7.x-1.0-beta5 » 7.x-1.x-dev

@ReboundToday, thanks for reporting! What symbols are you entering?

develcuy’s picture

Status: Needs review » Closed (outdated)