Skip to content

Commit bfcdbec

Browse files
bfederleyadvr
authored andcommitted
Fix encoding for user account label in header
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 4b45d25 commit bfcdbec

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎ui/scripts/ui/core.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
.addClass('navigation-item')
5151
.addClass(sectionID)
5252
.append($('<span>').addClass('icon').html('&nbsp;'))
53-
.append($('<span>').html(_l(args.title)))
53+
.append($('<span>').text(_l(args.title)))
5454
.data('cloudStack-section-id', sectionID);
5555

5656
if (args.customIcon) {
@@ -223,7 +223,7 @@
223223
id: 'user'
224224
}).addClass('button')
225225
.append(
226-
$('<div>').addClass('name').html(
226+
$('<div>').addClass('name').text(
227227
args.context && args.context.users ?
228228
cloudStack.concat(userLabel, 14) : 'Invalid User'
229229
)
@@ -258,7 +258,7 @@
258258
$('<div>').attr({
259259
id: 'breadcrumbs'
260260
})
261-
.append($('<div>').addClass('home').html(_l('label.home')))
261+
.append($('<div>').addClass('home').text(_l('label.home')))
262262
.append($('<div>').addClass('end'))
263263
)
264264

@@ -309,7 +309,7 @@
309309
.attr({
310310
href: '#'
311311
})
312-
.html(_l(this.toString()))
312+
.text(_l(this.toString()))
313313
.appendTo($options);
314314

315315
if (this == 'label.help') {
@@ -323,8 +323,8 @@
323323
}
324324
if (this == 'label.about') {
325325
$link.addClass('about').click(function() {
326-
var $logo = $('<div>').addClass('logo').html(_l('label.app.name')),
327-
$version = $('<div>').addClass('version').html(g_cloudstackversion),
326+
var $logo = $('<div>').addClass('logo').text(_l('label.app.name')),
327+
$version = $('<div>').addClass('version').text(g_cloudstackversion),
328328
$about = $('<div>').addClass('about').append($logo).append($version);
329329
$about.dialog({
330330
modal: true,

0 commit comments

Comments
 (0)