Skip to content

Commit

Permalink
Merge pull request #36 from genecommerce/release/3.2.1
Browse files Browse the repository at this point in the history
Revert to un-escaped output of JSON object.
  • Loading branch information
Paul Canning authored Jul 31, 2019
2 parents 7b235c7 + 3f8df97 commit 3712312
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gene/module-braintree",
"description": "Fork from the Magento Braintree 2.2.0 module by Gene Commerce for PayPal.",
"version": "3.2.0",
"version": "3.2.1",
"type": "magento2-module",
"license": "proprietary",
"require": {
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magento_Braintree" setup_version="3.2.0">
<module name="Magento_Braintree" setup_version="3.2.1">
<sequence>
<module name="Magento_Customer"/>
<module name="Magento_Config"/>
Expand Down
2 changes: 1 addition & 1 deletion view/adminhtml/templates/payment/script.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $code = $block->escapeHtml($block->getCode());
'jquery',
'domReady!'
], function(Braintree, $) {
let config = <?= $block->escapeJs($block->getPaymentConfig()) ?>,
let config = <?= /* @noEscape */ $block->getPaymentConfig() ?>,
payment,
form = $('#payment_form_<?= $block->escapeJs($code) ?>');

Expand Down

0 comments on commit 3712312

Please sign in to comment.