XEP-0059: max value check:

check that max is not negative, this is to spot the accidental use of C.NO_LIMIT for max
This commit is contained in:
Goffi 2019-01-11 09:48:19 +01:00
commit 8f7196aafb

View file

@ -143,7 +143,7 @@ class XEP_0313(object):
for name, value in extra.iteritems():
if name.startswith(FILTER_PREFIX):
var = name[len(FILTER_PREFIX) :]
var = name[len(FILTER_PREFIX):]
extra_fields = form_args.setdefault(u"extra_fields", [])
extra_fields.append(data_form.Field(var=var, value=value))