MapServer / tinyows

Source code of the TinyOWS project. Please submit pull requests to the 'main' branch.
https://mapserver.org/tinyows/
MIT License
59 stars 29 forks source link

KVP 8 bits support #24

Open ocourtin opened 12 years ago

ocourtin commented 12 years ago

A KVP query with 8 bits char (ä for example) is not rightly handled (url_decode only handle 7 bits)

Reported by Jukka Rahkonen

http://188.64.1.61/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getfeature&typename=tows:osm_polygon&maxfeatures=100&filter=%3CFilter%20%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etows:name%3C/PropertyName%3E%3CLiteral%3EP%E4ij%E4nne%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E

tbonfort commented 12 years ago

From RFC1738:

Octets must be encoded if they have no corresponding graphic
character within the US-ASCII coded character set, if the use of the
corresponding character is unsafe, or if the corresponding character
is reserved for some other interpretation within the particular URL
scheme.

so, passing ä in a url in invalid.

ocourtin commented 12 years ago

Thanks Thomas for this input, i close this ticket accordingly

tbonfort commented 12 years ago

Not sure this should be closed yet. ä is properly encoded to %E4 in the provided url.