Opened 3 years ago

Closed 3 years ago

#4232 closed defect (worksforme)

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 (2)

comment:1 Changed 3 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 3 years ago by lonvia

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

Reopen if you can provide an example.

Note: See TracTickets for help on using tickets.