Commit ff6d5a06 authored by Cédric de Saint Martin's avatar Cédric de Saint Martin Committed by Kazuhiko Shiozaki

Sanitize input.

TODO: Would be better to sanitize every parameter at beginning.
parent b995cd83
......@@ -134,7 +134,8 @@ class Recipe(BaseSlapRecipe):
# rule structure.
# So we will have one RewriteMap for normal websites, and one
# RewriteMap for Zope Virtual Host Monster websites.
if slave_instance.get("type", "").lower() in ['zope']:
if slave_instance.get("type") is not None and \
slave_instance.get("type", "").lower() in ['zope']:
rewrite_rule_zope_list.append(rewrite_rule)
# For Zope, we have another dict containing the path e.g '/erp5/...
rewrite_rule_path = "%s %s" % (domain, slave_instance.get('path', ''))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment