Skip to content

Commit

Permalink
Merge pull request #76 from experius/feature/SONPU-839
Browse files Browse the repository at this point in the history
[FEATURE][SONPU-839] Add escape url
  • Loading branch information
HappyLeeuw authored Jul 9, 2024
2 parents b4eea8d + abf8576 commit 4fc3f30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions view/adminhtml/templates/system/config/checker.phtml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php /* @var $block \Experius\Postcode\Block\System\Config\Checker */ ?>
<?php /* @var $escaper \Magento\Framework\Escaper */ ?>
<script>
require([
'jquery',
'prototype',
], function (jQuery) {

function apicheck() {
var params = {
var params = {
apikey : jQuery("#postcodenl_api_general_api_key").val(),
apisecret : jQuery("#postcodenl_api_general_api_secret").val()
};
new Ajax.Request('<?php echo $block->getAjaxUrl() ?>', {
new Ajax.Request('<?php echo $escaper->escapeUrl($block->getAjaxUrl()) ?>', {
loaderArea: true,
asynchronous: true,
parameters: params,
Expand Down

0 comments on commit 4fc3f30

Please sign in to comment.