Skip to content

Commit 217808f

Browse files
authored
Merge pull request #18 from mageplaza/2.3-develop
2.3 develop
2 parents 851ddf1 + 07717a6 commit 217808f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Helper/Data.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ public function ajaxEnabled($storeId = null)
5151
*/
5252
public function getLayerConfiguration($filters)
5353
{
54-
$filterParams = $this->_getRequest()->getParams();
54+
$params = $this->_getRequest()->getParams();
55+
$filterParams = [];
56+
foreach ($params as $key => $param) {
57+
if ($key === 'amp;dimbaar') {
58+
continue;
59+
}
60+
$filterParams[htmlentities($key)] = htmlentities($param);
61+
}
5562

5663
$config = new DataObject([
5764
'active' => array_keys($filterParams),

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"mageplaza/module-core": "^1.4.5"
66
},
77
"type": "magento2-module",
8-
"version": "1.0.5",
8+
"version": "1.0.6",
99
"license": "proprietary",
1010
"authors": [
1111
{

view/frontend/templates/layer/view.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<script type="text/x-magento-init">
8080
{
8181
".block-content.filter-content":{
82-
"mpAjax": <?= /** @noEscape */ $layerConfig ?>
82+
"mpAjax": <?= /** @noEscape */ $block->escapeJs($layerConfig) ?>
8383
}
8484
}
8585
</script>

0 commit comments

Comments
 (0)