]> git.openstreetmap.org Git - nominatim.git/commitdiff
properly quote quotes in type field
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 21 Oct 2013 16:26:45 +0000 (18:26 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 21 Oct 2013 16:28:10 +0000 (18:28 +0200)
lib/template/search-xml.php

index dfcf1375e95231e7f7252ec9d373a040106ec5d8..693330bb52cfce29fba95d3ce1c45415085b4b99 100644 (file)
@@ -80,7 +80,7 @@
                echo " display_name='".htmlspecialchars($aResult['name'], ENT_QUOTES)."'";
 
                echo " class='".htmlspecialchars($aResult['class'])."'";
-               echo " type='".htmlspecialchars($aResult['type'])."'";
+               echo " type='".htmlspecialchars($aResult['type'], ENT_QUOTES)."'";
                echo " importance='".htmlspecialchars($aResult['importance'])."'";
                if (isset($aResult['icon']) && $aResult['icon'])
                {