Skip to content

Commit

Permalink
escaping label when form is init (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
iambibhas authored Jan 9, 2020
1 parent 2553644 commit cdd54e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion baseframe/forms/patch_wtforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from __future__ import absolute_import

from flask import escape
import wtforms

__all__ = []
Expand Down Expand Up @@ -47,7 +48,7 @@ def field_init(

original_field_init(
self,
label,
escape(label), # wtforms<3.0 doesn't escape label text
validators,
filters=filters,
description=description,
Expand Down

0 comments on commit cdd54e2

Please sign in to comment.