Ticket #1262 (closed bug: fixed)
loadURL does not escape + (plus) character in URL
| Reported by: | rdewit | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.6 Release |
| Component: | examples | Version: | 2.5 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
Not sure if it really is a bug, but the javascript function escape() that is called to URL encode the URL that will be passed to Ajax.Request does not escape the plus character. Some GET requests have a parameter like: ...&format=application/kml+xml&...
These requests will fail and (in my case) get an error back from the server.
Something like this will help it (Ajax.js, line 63):
uri = OpenLayers.ProxyHost + escape(uri.replace(/\+/, "%2B"));
Is that the way to go?
Btw: can we add 'Ajax' to the list of components?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

