forked from shaba/openuds
Removed "excesive" debug and added sanity check to unserialization of form
This commit is contained in:
parent
0bb26cfae1
commit
2b3cc74f64
@ -752,9 +752,8 @@ class UserInterface(object):
|
|||||||
return
|
return
|
||||||
for txt in values.decode('zip').split('\002'):
|
for txt in values.decode('zip').split('\002'):
|
||||||
k, v = txt.split('\003')
|
k, v = txt.split('\003')
|
||||||
logger.debug('k: {0}, v:{1}'.format(k,v))
|
|
||||||
if self._gui.has_key(k):
|
if self._gui.has_key(k):
|
||||||
if v[0] == '\001':
|
if v[0] == '\001' and len(v) > 1:
|
||||||
val = cPickle.loads(v[1:])
|
val = cPickle.loads(v[1:])
|
||||||
else:
|
else:
|
||||||
val = v
|
val = v
|
||||||
|
Loading…
x
Reference in New Issue
Block a user