summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/xml')
-rw-r--r--addons/web_editor/static/src/xml/editor.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml
index 2146f916937..44abb32caf1 100644
--- a/addons/web_editor/static/src/xml/editor.xml
+++ b/addons/web_editor/static/src/xml/editor.xml
@@ -88,8 +88,7 @@
enctype="multipart/form-data"
target="fileframe"
class="form-inline">
- <!-- why is this template rendered client side? -->
- <!-- input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/-->
+ <input type="hidden" name="csrf_token" t-att-value="csrf_token"/>
<div class="well">
<div class="form-group pull-left">
<input type="file" name="upload" t-att-accept="widget.accept" multiple="multiple" style="position: absolute; opacity: 0; width: 1px; height: 1px;"/>