Permalink
Browse files

Fix dangerous parameter check in propagate adapter

  • Loading branch information...
1 parent c611a8f commit 2652487b92f777af09398d3bbcc451d16e745050 @oldpatricka oldpatricka committed Aug 20, 2012
@@ -14,7 +14,7 @@ class propadapter(PropagationAdapter):
def __init__(self, params, common):
PropagationAdapter.__init__(self, params, common)
allow_xserver = self.p.get_conf_or_none('propagation', 'https-cross-server-redirect')
- if allow_xserver.strip().lower() == "true":
+ if allow_xserver is not None and allow_xserver.strip().lower() == "true":
self.allow_xserver_redirect = True
else:
self.allow_xserver_redirect = False

0 comments on commit 2652487

Please sign in to comment.