Skip to content

Commit abf8576

Browse files
committed
[FEATURE][SONPU-839] Add escape url
1 parent b4eea8d commit abf8576

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

view/adminhtml/templates/system/config/checker.phtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<?php /* @var $block \Experius\Postcode\Block\System\Config\Checker */ ?>
2+
<?php /* @var $escaper \Magento\Framework\Escaper */ ?>
23
<script>
34
require([
45
'jquery',
56
'prototype',
67
], function (jQuery) {
78

89
function apicheck() {
9-
var params = {
10+
var params = {
1011
apikey : jQuery("#postcodenl_api_general_api_key").val(),
1112
apisecret : jQuery("#postcodenl_api_general_api_secret").val()
1213
};
13-
new Ajax.Request('<?php echo $block->getAjaxUrl() ?>', {
14+
new Ajax.Request('<?php echo $escaper->escapeUrl($block->getAjaxUrl()) ?>', {
1415
loaderArea: true,
1516
asynchronous: true,
1617
parameters: params,

0 commit comments

Comments
 (0)