[wp-trac] [WordPress Trac] #39669: Appearance/Menu, Custom Link: bad URL value sanitation
WordPress Trac
noreply at wordpress.org
Mon Jan 23 16:38:00 UTC 2017
#39669: Appearance/Menu, Custom Link: bad URL value sanitation
--------------------------+-----------------------------
Reporter: TRILOS | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 4.7.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When adding Custom Link with URL value
../
and saving the menu, WP changes the URL to
http://../
Referring to the parent directory is therefore impossible.
As this IMHO is a valid "URL" for referring the parent directory, there´s
no need to (I guess) "sanitize" the field value into a "valid" URL
(despite this, "http://../" is not even a valid URL).
Same with ../dirname/ => http://../dirname/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39669>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list