Fix bug when post title contains apostrophe.

This commit is contained in:
Matthias Gutjahr 2014-03-22 16:09:00 +01:00
parent a6ac10c3fc
commit b83d82e61e
3 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,7 @@
1.33 (mattsches)
----------------------------------
* Fix bug when post title contains apostrophe.
1.30/31 (brockhaus)
----------------------------------
* Compatibility fixes.
@ -45,4 +49,4 @@ Version 1.23: (by Werner M. Krauß)
* added ability to use mod_rewrite urls without "index.php?"
* fixed error when no config values for default coordinates have been set
* added geocode: just type in an address and the plugin tries to get the correct coordinates
* map gets updated on manual change of the coordinates (hit enter)
* map gets updated on manual change of the coordinates (hit enter)

View file

@ -1,5 +1,5 @@
<?php
// Actual version of both plugins
@define('PLUGIN_EVENT_GEOTAG_VERSION', '1.32');
@define('PLUGIN_EVENT_GEOTAG_VERSION', '1.33');
@define('PLUGIN_EVENT_GEOTAG_AUTHOR', 'Zoran Kovacevic, Grischa Brockhaus, Matthias Gutjahr');

View file

@ -422,13 +422,13 @@ map.setCenter(lonLat, zoom);
$counter = 0;
foreach ($tt as $t) { ?>
titles.push('<?php echo $t['title']; ?>');
titles.push('<?php echo addslashes($t['title']); ?>');
urls.push('<?php echo $t['permalink']; ?>');
setMarkerOsm(
{
lat: <?php echo $t['lat']; ?>,
lng: <?php echo $t['lng']; ?>,
title: '<?php echo $t['title']; ?>',
title: '<?php echo addslashes($t['title']); ?>',
url: '<?php echo $t['permalink']; ?>'
},
null
@ -470,4 +470,4 @@ xmlhttp.send(null);
<?php
}
}
}
}