summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-07-04 18:14:13 +0200
committerChristophe Simonis <chs@odoo.com>2017-07-04 18:14:13 +0200
commit780ae8a808697cc156549e532614f8536cef2b1b (patch)
tree3a5865d782dab6e03f9e58314f81508bef161c61 /addons/web/controllers/main.py
parent680ab988607967a2503ae5a1abeabf899ff40477 (diff)
parent10cb34bcacc0983cdab722e528d413a996df3a7b (diff)
[MERGE] forward port branch saas-15 up to 10cb34bcacc
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 2cd2c2ac7da..5c3fc9f9e50 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1012,6 +1012,8 @@ class Binary(http.Controller):
elif status != 200 and download:
return request.not_found()
+ height = int(height)
+ width = int(width)
if content and (width or height):
# resize maximum 500*500
if width > 500: