mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge pull request #3095 from modoboa/fix/xss_profile_form
Fixed XSS vulnerability when displaying form error messages.
This commit is contained in:
@@ -30,7 +30,7 @@ TwocolsNav.prototype = {
|
||||
listen: function() {
|
||||
$("a.ajaxnav").click($.proxy(this.load_section, this));
|
||||
$(document).on("click", "#update", $.proxy(function(e) {
|
||||
var $form = $("form").first();
|
||||
var $form = $(e.target).closest("form");
|
||||
simple_ajax_form_post(e, {
|
||||
formid: $form.attr("id"),
|
||||
modal: false,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
{% endif %}
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div class="{% render_field_width field %}">
|
||||
{% if appended_text %}
|
||||
<div class="input-group">
|
||||
@@ -31,7 +31,7 @@
|
||||
{% if field.errors %}
|
||||
<p class="help-block">
|
||||
{% for error in field.errors %}
|
||||
{{ error|safe }}
|
||||
{{ error }}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user