Skip to content

Commit

Permalink
fix google map location data escape (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat authored Jun 4, 2021
1 parent 2b4db77 commit 5ac9242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Just click the "update" button or execute the migration command to finish the bu
#### Update from Version 3.2.5 to Version 3.3.0
- **[NEW FEATURE]**: Pimcore 6.9.0 ready
- **[IMPROVEMENT]**: use no-cookie domain for youtube videos [@ghettopro](https://github.com/dachcom-digital/pimcore-toolbox/pull/153)
- **[BUG FIX]**: Fix invalid asset video markup[@gpalmisano](https://github.com/dachcom-digital/pimcore-toolbox/pull/154)
- **[BUG FIX]**: Fix invalid asset video markup [@gpalmisano](https://github.com/dachcom-digital/pimcore-toolbox/pull/154)
- **[BUG FIX]**: Fix google maps locations with single quotes [#151](https://github.com/dachcom-digital/pimcore-toolbox/issues/151)

#### Update from Version 3.2.4 to Version 3.2.5
- **[BUG FIX]**: Fix column adjuster column_store availability check
Expand Down
2 changes: 1 addition & 1 deletion src/ToolboxBundle/Model/Document/Tag/GoogleMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function frontend()
$configData = property_exists($this, 'config') ? $this->config : $this->options;

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

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

0 comments on commit 5ac9242

Please sign in to comment.