1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Removed "excesive" debug and added sanity check to unserialization of form

This commit is contained in:
Adolfo Gómez 2012-11-16 09:04:33 +00:00
parent 2b3cc74f64
commit 7717793604

View File

@ -753,10 +753,13 @@ class UserInterface(object):
for txt in values.decode('zip').split('\002'):
k, v = txt.split('\003')
if self._gui.has_key(k):
if v[0] == '\001' and len(v) > 1:
val = cPickle.loads(v[1:])
else:
val = v
try:
if v[0] == '\001':
val = cPickle.loads(v[1:])
else:
val = v
except:
val = ''
self._gui[k].value = val
@classmethod