Skip to content

Commit 50c720c

Browse files
oiegorovSergey Nosov
authored andcommitted
MAGETWO-47704: HTML tags are shown in messages
1 parent 0de8d8e commit 50c720c

File tree

2 files changed

+4
-4
lines changed
  • app/code/Magento/EncryptionKey

2 files changed

+4
-4
lines changed

app/code/Magento/EncryptionKey/Block/Adminhtml/Crypt/Key/Form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ protected function _prepareForm()
4040
'name' => 'generate_random',
4141
'label' => __('Auto-generate a Key'),
4242
'options' => [0 => __('No'), 1 => __('Yes')],
43-
'onclick' => "var cryptKey = $('crypt_key'); cryptKey.disabled = this.value == 1; " .
44-
"if (cryptKey.disabled) {cryptKey.parentNode.parentNode.hide();} " .
45-
"else {cryptKey.parentNode.parentNode.show();}",
43+
'onclick' => "var cryptKey = jQuery('#crypt_key'); cryptKey.disabled = this.value == 1; " .
44+
"if (cryptKey.disabled) {cryptKey.parent().parent().hide();} " .
45+
"else {cryptKey.parent().parent().show();}",
4646
'note' => __('The generated key will be displayed after changing.')
4747
]
4848
);

app/code/Magento/EncryptionKey/Controller/Adminhtml/Crypt/Key/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function execute()
6969
if (!$key) {
7070
$this->messageManager->addNoticeMessage(
7171
__(
72-
'This is your new encryption key: <span style="font-family:monospace;">%1</span>. ' .
72+
'This is your new encryption key: %1. ' .
7373
'Be sure to write it down and take good care of it!',
7474
$newKey
7575
)

0 commit comments

Comments
 (0)