summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur <timka@users.noreply.github.com>2014-07-02 08:23:04 +0400
committerTimur <timka@users.noreply.github.com>2014-07-02 08:23:04 +0400
commit8668dba51714a6e96d27fcd05338e0124036ef3f (patch)
tree133992922104f49017e0fcc7d57dd4afd34fd197
parenta793c1d11a3ada1508f0c0979eb317afe2b94ee4 (diff)
downloadpyramid-8668dba51714a6e96d27fcd05338e0124036ef3f.tar.gz
pyramid-8668dba51714a6e96d27fcd05338e0124036ef3f.tar.bz2
pyramid-8668dba51714a6e96d27fcd05338e0124036ef3f.zip
Restrict request_param equal sign syntax
-rw-r--r--pyramid/config/predicates.py2
1 files changed, 1 insertions, 1 deletions
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))