Ticket #508 (closed feature: fixed)

Opened 6 years ago

Last modified 6 years ago

MapServer Layer shouldn't encode "+"

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

Description (last modified by crschmidt) (diff)

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 Download (4.1 KB) - added by crschmidt 6 years ago.
sub-class getFullRequestString to modify parameters for mapserver

Change History

Changed 6 years ago by crschmidt

  • description modified (diff)

Changed 6 years ago 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.

Changed 6 years ago by crschmidt

sub-class getFullRequestString to modify parameters for mapserver

Changed 6 years ago by sderle

  • keywords review added

Changed 6 years ago by sderle

  • keywords review removed
  • status changed from new to closed
  • resolution set to fixed

applied as r2544.

Note: See TracTickets for help on using tickets.