Fix bug when post title contains apostrophe.
This commit is contained in:
parent
a6ac10c3fc
commit
b83d82e61e
|
@ -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)
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue