Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit d3cea44

Browse files
committed
Javascript code must be updated too
1 parent 51f758d commit d3cea44

File tree

1 file changed

+3
-3
lines changed
  • modoboa_webmail/static/modoboa_webmail/js

1 file changed

+3
-3
lines changed

modoboa_webmail/static/modoboa_webmail/js/webmail.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ Webmail.prototype = {
481481
});
482482
var parts = mailbox.name.split(this.options.hdelimiter);
483483
var linkcontent = "<span class='fa fa-folder'></span> ";
484-
var displayname = linkcontent + parts[parts.length - 1];
484+
var displayname = linkcontent + htmlEncode(parts[parts.length - 1]);
485485

486486
if (mailbox.removed) {
487487
$li.addClass('disabled');
@@ -769,7 +769,7 @@ Webmail.prototype = {
769769
mailbox = $parent.attr("name") + this.options.hdelimiter + mailbox;
770770
} else {
771771
$parent = $("#folders > ul");
772-
}
772+
}
773773
var $li = this.inject_mailbox($parent, "loadfolder", { name: mailbox });
774774
this.init_droppables($li);
775775
},
@@ -786,7 +786,7 @@ Webmail.prototype = {
786786
if (oldname != newname) {
787787
var $span = $link.children("span");
788788

789-
$link.html(" " + newname);
789+
$link.html(" " + htmlEncode(newname));
790790
$link.parent("li").attr("name", newpattern);
791791
$link.prepend($span);
792792
$link.attr("href", newpattern);

0 commit comments

Comments
 (0)