We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4eea8d + abf8576 commit 4fc3f30Copy full SHA for 4fc3f30
view/adminhtml/templates/system/config/checker.phtml
@@ -1,16 +1,17 @@
1
<?php /* @var $block \Experius\Postcode\Block\System\Config\Checker */ ?>
2
+<?php /* @var $escaper \Magento\Framework\Escaper */ ?>
3
<script>
4
require([
5
'jquery',
6
'prototype',
7
], function (jQuery) {
8
9
function apicheck() {
- var params = {
10
+ var params = {
11
apikey : jQuery("#postcodenl_api_general_api_key").val(),
12
apisecret : jQuery("#postcodenl_api_general_api_secret").val()
13
};
- new Ajax.Request('<?php echo $block->getAjaxUrl() ?>', {
14
+ new Ajax.Request('<?php echo $escaper->escapeUrl($block->getAjaxUrl()) ?>', {
15
loaderArea: true,
16
asynchronous: true,
17
parameters: params,
0 commit comments