From 347e19a2c6bba24684af4e608bce04efcb0b8015 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Wed, 29 Apr 2020 10:43:31 +0200 Subject: [PATCH] unquote form value only if string --- browser/form.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/form.py b/browser/form.py index 33b8af4..4c94d17 100755 --- a/browser/form.py +++ b/browser/form.py @@ -182,7 +182,9 @@ class ObjectForm(NodeView): field = self.schema.fields.get(k) if field: fi = field.getFieldInstance(self.instance) - input = unquote_plus(form[k]) + input = form[k] + if isinstance(input, basestring): + input = unquote_plus(input) data[k] = fi.marshall(fi.unmarshall(input)) #data[k] = toUnicode(form[k]) return data