Opened 9 months ago
Last modified 9 months ago
#21631 new defect (bug)
HTML encoded characters in the custom menu's URL html are decoded after first save and removed after second save
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Menus | Version: | 3.4.1 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: |
Description
Special characters in the custom menu's URL get double html encoded after second save.
Having an array in the URL that is using square brackets (site.com/key[value]), the links break after the second save of that menu item because the & in the & gets double html encoded.
Change History (3)
comment:1
rocketwood — 9 months ago
- Summary changed from Special characters in the custom menu's URL get double html encoded after second save to HTML encoded characters in the custom menu's URL html are dencoded after first save and removed after second save
comment:2
in reply to:
↑ description
rocketwood — 9 months ago
comment:3
rocketwood — 9 months ago
- Summary changed from HTML encoded characters in the custom menu's URL html are dencoded after first save and removed after second save to HTML encoded characters in the custom menu's URL html are decoded after first save and removed after second save
Note: See
TracTickets for help on using
tickets.

Replying to rocketwood:
The issue is when
http://site.com/post_type/key[value]/ is converted and saved as http://site.com/post_type/key[value]/ after the first save and striped of brackets after the second save http://site.com/post_type/keyvalue/