[Tile-serving] [osm2pgsql] middle-pgsql fails to escape special characters (#247)
Sarah Hoffmann
notifications at github.com
Thu Jan 1 17:09:38 UTC 2015
The function that escapes tag values, [escape_tag() in pgsql_middle](https://github.com/openstreetmap/osm2pgsql/blob/master/middle-pgsql.cpp#L144), escapes '\n', '\r' and '\t' to 'n', 'r' and 't'. That doesn't look right. It isn't clear from the code if the intention was to write the special character into the database or a slash and a letter.
To reproduce load http://www.openstreetmap.org/api/0.6/node/30029830 into the database. I'll provide a test shortly.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/247
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150101/adc32602/attachment.html>
More information about the Tile-serving
mailing list