Opened 13 years ago
Closed 13 years ago
#19850 closed enhancement (fixed)
double slash in URL when editing gallery in visual mode
Reported by: | h8every1 | Owned by: | azaozz |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | Gallery | Keywords: | has-patch |
Focuses: | Cc: |
Description
reproduce:
- upload images
- insert gallery into the editor
- in "Visual" mode hover over the gallery placeholder and click the edit button
- a pop-up shows, which URL is 'wp-admin//media-upload.php'
it works all right with vanilla install, but with some anti-hacker enhancements to .htaccess (5G Firewall) it breaks because of double slash.
Attachments (1)
Change History (5)
#3
@
13 years ago
Introduced in [9894]:
http://core.trac.wordpress.org/changeset/9894#file11
Note: See
TracTickets for help on using
tickets.
According to TinyMCE documentation,
documentBaseURL
must end with a slash, so the additional slash is not needed.Seems that the compressed file is always loaded (regardless of
SCRIPT_DEBUG
), so in order to test the patch I had to alterwpgallery/editor_plugin.js
as well.There's also a support forum thread about this issue.