From 2b3cc74f64d2e9616c8baaa49f7a029e2a913bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez?= Date: Fri, 16 Nov 2012 09:02:39 +0000 Subject: [PATCH] Removed "excesive" debug and added sanity check to unserialization of form --- server/src/uds/core/ui/UserInterface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/uds/core/ui/UserInterface.py b/server/src/uds/core/ui/UserInterface.py index 0767901d4..d479f7b09 100644 --- a/server/src/uds/core/ui/UserInterface.py +++ b/server/src/uds/core/ui/UserInterface.py @@ -752,9 +752,8 @@ class UserInterface(object): return for txt in values.decode('zip').split('\002'): k, v = txt.split('\003') - logger.debug('k: {0}, v:{1}'.format(k,v)) if self._gui.has_key(k): - if v[0] == '\001': + if v[0] == '\001' and len(v) > 1: val = cPickle.loads(v[1:]) else: val = v