mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge pull request #2763 from modoboa/fix/xss_fixes
Avoid XSS issues while deleting account and looking at logs.
This commit is contained in:
@@ -408,7 +408,7 @@ Identities.prototype = {
|
||||
}
|
||||
|
||||
$("a[name=delaccount]").confirm({
|
||||
question: function() { return this.$element.attr('title'); },
|
||||
question: function() { return htmlEncode(this.$element.attr('title')); },
|
||||
method: "POST",
|
||||
checkboxes: deloptions,
|
||||
success_cb: $.proxy(this.reload_listing, this)
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
<td>{{ l.date_created|date:"SHORT_DATETIME_FORMAT" }}</td>
|
||||
<td>{{ l.level|colorize_level|safe }}</td>
|
||||
<td>{{ l.logger }}</td>
|
||||
<td>{{ l.message|tohtml|safe }}</td>
|
||||
<td>{{ l.message }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
$.each(this.choices, $.proxy(function(index, value) {
|
||||
if (exp.test(value)) {
|
||||
this.$menu.append(
|
||||
$('<li><a href="#" name="' + value + '">' + value + '</a></li>')
|
||||
$('<li><a href="#" name="' + htmlEncode(value) + '">' + htmlEncode(value) + '</a></li>')
|
||||
);
|
||||
}
|
||||
}, this));
|
||||
|
||||
Reference in New Issue
Block a user