tinyows icon indicating copy to clipboard operation
tinyows copied to clipboard

KVP 8 bits support

Open ocourtin opened this issue 12 years ago • 3 comments

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

ocourtin avatar Oct 14 '12 20:10 ocourtin

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.

tbonfort avatar Oct 15 '12 07:10 tbonfort

Thanks Thomas for this input, i close this ticket accordingly

ocourtin avatar Oct 15 '12 07:10 ocourtin

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

tbonfort avatar Oct 15 '12 07:10 tbonfort