Ticket #4232 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

Nominatim: XML attributes not properly escaped

Reported by: rexmac Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version:
Keywords: Cc:

Description

When retrieving XML results, ampersands (&) are not properly escaped as & (as per  §2.4 of the XML 1.0 spec) in the more_url attribute of the searchresults node.

Change History

comment:1 Changed 2 years ago by lonvia

Works for me. Tried to search for K&L:

http://nominatim.openstreetmap.org/search.php?q=K%26L&format=xml

and it returns a properly escaped:

more_url='http://nominatim.openstreetmap.org/search?format=xml&exclude_place_ids=17381569,115309965,8585366,6472748,1473539,7130582,48199167,3561534,89696007,45854878&accept-language=&q=K%26L'

Can you give an example where the escaping is wrong?

comment:2 Changed 2 years ago by lonvia

  • Status changed from new to closed
  • Resolution set to worksforme

Reopen if you can provide an example.

Note: See TracTickets for help on using tickets.