Skip to content

Commit 5ac9242

Browse files
authored
fix google map location data escape (#156)
1 parent 2b4db77 commit 5ac9242

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

UPGRADE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Just click the "update" button or execute the migration command to finish the bu
99
#### Update from Version 3.2.5 to Version 3.3.0
1010
- **[NEW FEATURE]**: Pimcore 6.9.0 ready
1111
- **[IMPROVEMENT]**: use no-cookie domain for youtube videos [@ghettopro](https://github.com/dachcom-digital/pimcore-toolbox/pull/153)
12-
- **[BUG FIX]**: Fix invalid asset video markup[@gpalmisano](https://github.com/dachcom-digital/pimcore-toolbox/pull/154)
12+
- **[BUG FIX]**: Fix invalid asset video markup [@gpalmisano](https://github.com/dachcom-digital/pimcore-toolbox/pull/154)
13+
- **[BUG FIX]**: Fix google maps locations with single quotes [#151](https://github.com/dachcom-digital/pimcore-toolbox/issues/151)
1314

1415
#### Update from Version 3.2.4 to Version 3.2.5
1516
- **[BUG FIX]**: Fix column adjuster column_store availability check

src/ToolboxBundle/Model/Document/Tag/GoogleMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function frontend()
5858
$configData = property_exists($this, 'config') ? $this->config : $this->options;
5959

6060
$dataAttr = [];
61-
$dataAttr['data-locations'] = json_encode($this->data);
61+
$dataAttr['data-locations'] = json_encode($this->data, JSON_HEX_QUOT | JSON_HEX_APOS);
6262
$dataAttr['data-show-info-window-on-load'] = $configData['iwOnInit'];
6363

6464
$dataAttr['data-mapoption-zoom'] = $configData['mapZoom'];

0 commit comments

Comments
 (0)