Zverik / Level0

Web-based OpenStreetMap Editor
http://level0.osmz.ru
Do What The F*ck You Want To Public License
54 stars 14 forks source link

apostrophes not escape when downloading osm file #33

Closed wvanderp closed 7 years ago

wvanderp commented 7 years ago

Apostrophes are not escaped when downloading a osm file. so, when I try to open this file in josm it complains about an invalid xml file. an example file is included

https://gist.github.com/wvanderp/d4efadb577639d058e60d68b1041fa0e

Zverik commented 7 years ago

Fixed in #34.

wvanderp commented 7 years ago

there is still an error when uses contain a '.

like the data here: map=17/51.942767/4.449109

i think is can be fixed by adding a htmlspecialchars($obj[$k], ENT_QUOTES) here

Zverik commented 7 years ago

Thanks, I did that.