0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 15:43:50 +01:00

SYWEB-278 Don't allow rules with no rule_id.

This commit is contained in:
David Baker 2015-02-25 14:02:38 +00:00
parent 255f989c7b
commit a025055643

View file

@ -214,7 +214,7 @@ def _rule_spec_from_path(path):
template = path[0]
path = path[1:]
if len(path) == 0:
if len(path) == 0 or len(path[0]) == 0:
raise UnrecognizedRequestError()
rule_id = path[0]