Skip to content

Commit 2280e04

Browse files
authored
make sure the type of input value is int
1 parent 68887af commit 2280e04

File tree

1 file changed

+2
-2
lines changed
  • image/usr/local/lib/web/backend/vnc

1 file changed

+2
-2
lines changed

image/usr/local/lib/web/backend/vnc/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def apihealth():
4747
def reset():
4848
if 'w' in request.args and 'h' in request.args:
4949
args = {
50-
'w': request.args.get('w'),
51-
'h': request.args.get('h'),
50+
'w': int(request.args.get('w')),
51+
'h': int(request.args.get('h')),
5252
}
5353
state.set_size(args['w'], args['h'])
5454

0 commit comments

Comments
 (0)