summaryrefslogtreecommitdiff
path: root/addons/web_editor/models/ir_qweb.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-04-19 12:48:58 +0200
committerChristophe Simonis <chs@odoo.com>2016-04-19 12:48:58 +0200
commit7c0442080295ca1add3fffcebb8014d2f0d72977 (patch)
tree5f843ca74ec2da09094e39f728770576af04520c /addons/web_editor/models/ir_qweb.py
parenta4fbaaa77673dfd68ea2a453a892ca7216ea6110 (diff)
parent7033a97f7703dc212f220b1c4d5a1236caab1654 (diff)
[MERGE] forward port of branch saas-6 up to 7033a97
Diffstat (limited to 'addons/web_editor/models/ir_qweb.py')
-rw-r--r--addons/web_editor/models/ir_qweb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/models/ir_qweb.py b/addons/web_editor/models/ir_qweb.py
index 5fdbd4ae209..36ce06c5141 100644
--- a/addons/web_editor/models/ir_qweb.py
+++ b/addons/web_editor/models/ir_qweb.py
@@ -350,7 +350,7 @@ class Image(orm.AbstractModel):
alt = None
if options.get('alt-field') and getattr(record, options['alt-field'], None):
- alt = record[options['alt-field']]
+ alt = escape(record[options['alt-field']])
elif options.get('alt'):
alt = options['alt']