Index: trunk/extensions/Maps/ParserFunctions/DisplayMap/Maps_BaseMap.php |
— | — | @@ -78,8 +78,8 @@ |
79 | 79 | // If the centre is not false, it will be a valid coordinate, which can be used to set the latitude and longitutde. |
80 | 80 | if ($this->coordinates) { |
81 | 81 | $this->coordinates = MapsUtils::getLatLon($this->coordinates); |
82 | | - $this->centre_lat = $this->coordinates['lat']; |
83 | | - $this->centre_lon = $this->coordinates['lon']; |
| 82 | + $this->centre_lat = Xml::escapeJsString( $this->coordinates['lat'] ); |
| 83 | + $this->centre_lon = Xml::escapeJsString( $this->coordinates['lon'] ); |
84 | 84 | } |
85 | 85 | else { // If it's false, the coordinate was invalid, or geocoding failed. Either way, the default's should be used. |
86 | 86 | $this->setCentreDefaults(); |