From 8668dba51714a6e96d27fcd05338e0124036ef3f Mon Sep 17 00:00:00 2001 From: Timur Date: Wed, 2 Jul 2014 08:23:04 +0400 Subject: Restrict request_param equal sign syntax --- pyramid/config/predicates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyramid/config/predicates.py b/pyramid/config/predicates.py index 128c3ab7b..fbd214b15 100644 --- a/pyramid/config/predicates.py +++ b/pyramid/config/predicates.py @@ -70,7 +70,7 @@ class RequestParamPredicate(object): for p in val: k = p v = None - if '=' in p and not (p.startswith('=') or p.endswith('=')): + if '=' in p and not p.startswith('='): k, v = p.split('=', 1) k, v = k.strip(), v.strip() reqs.append((k, v)) -- cgit v1.2.3