OpenLayers OpenLayers

Ticket #508 (closed feature: fixed)

Opened 2 years ago

Last modified 2 years ago

MapServer Layer shouldn't encode "+"

Reported by: crschmidt Assigned to:
Priority: minor Milestone: 2.4 Release
Component: general Version:
Keywords: Cc:
State:

Description (Last modified by crschmidt)

URL encoding broke the MapServer layer.

The "+" characters that are sent in the parameters need some kind of protection from encoding, becuase mapserver needs them to not be encoded.

Attachments

mapserver.patch (4.1 kB) - added by crschmidt on 03/05/07 02:31:52.
sub-class getFullRequestString to modify parameters for mapserver

Change History

02/24/07 09:20:12 changed by crschmidt

  • description changed.

02/24/07 09:28:40 changed by crschmidt

Since "," is normally URL encoded, but isn't in lists, we can make the parameters we want to put a "+" in a list. Then, we can replace "," with "+" at the end of the function -- the only literal commas in the output should be the ones that we put in the lists -- and that should do it...

Except in the case where a URL contains a comma itself. Crap. Well, the given patch will work so long as your URL doesn't contain ","s in it.

03/05/07 02:31:52 changed by crschmidt

  • attachment mapserver.patch added.

sub-class getFullRequestString to modify parameters for mapserver

03/08/07 13:28:24 changed by sderle

  • keywords set to review.

03/08/07 15:20:11 changed by sderle

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to fixed.

applied as r2544.