Skip to content

Commit 3ae5f85

Browse files
committed
Merge remote-tracking branch 'origin/magento-commerce/magento2-login-as-customer#172' into module-login-as-customer
2 parents 13e4270 + 8818e30 commit 3ae5f85

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/Magento/LoginAsCustomerFrontendUi/view/frontend/web/js/view/loginAsCustomer.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
define([
77
'jquery',
8+
'underscore',
89
'uiComponent',
910
'Magento_Customer/js/customer-data',
1011
'mage/translate'
11-
], function ($, Component, customer) {
12+
], function ($, _, Component, customer) {
1213
'use strict';
1314

1415
return Component.extend({
@@ -63,8 +64,8 @@ define([
6364

6465
if (this.fullname !== undefined && this.websiteName !== undefined) {
6566
this.notificationText($.mage.__('You are connected as <strong>%1</strong> on %2')
66-
.replace('%1', this.fullname)
67-
.replace('%2', this.websiteName));
67+
.replace('%1', _.escape(this.fullname))
68+
.replace('%2', _.escape(this.websiteName)));
6869
}
6970
}
7071
});

0 commit comments

Comments
 (0)