From 2280e040d0f39cb1d784b338fdc63aa18da4c717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BD=AF=E4=BB=B6=E5=B7=A5=E7=A8=8B=E5=B8=88=E6=9D=8E?= =?UTF-8?q?=E9=A3=9B?= Date: Sun, 31 Mar 2019 05:35:51 +0800 Subject: [PATCH] make sure the type of input value is int --- image/usr/local/lib/web/backend/vnc/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image/usr/local/lib/web/backend/vnc/app.py b/image/usr/local/lib/web/backend/vnc/app.py index 7397a74..40f8d5a 100644 --- a/image/usr/local/lib/web/backend/vnc/app.py +++ b/image/usr/local/lib/web/backend/vnc/app.py @@ -47,8 +47,8 @@ def apihealth(): def reset(): if 'w' in request.args and 'h' in request.args: args = { - 'w': request.args.get('w'), - 'h': request.args.get('h'), + 'w': int(request.args.get('w')), + 'h': int(request.args.get('h')), } state.set_size(args['w'], args['h'])