diff options
author | martinko | 2013-01-14 15:04:22 +0000 |
---|---|---|
committer | martinko | 2013-01-14 15:04:22 +0000 |
commit | a5ec2af7699347116192d15ab41490139aa1f7fc (patch) | |
tree | 2b086f28b26a9d4a5c5e92beba544d6e8372b2e3 | |
parent | 286d78f800f3a7c97ca276354b8df10f27e4ec03 (diff) |
londiste.handler: disable shortcut for specifying handler args together with its name
This will be allowed no more: --handler="hname(arg1=123, …)"
It was a weak point through which Londiste setup could be broken.
-rw-r--r-- | python/londiste/handler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/londiste/handler.py b/python/londiste/handler.py index d19b517f..51fa603a 100644 --- a/python/londiste/handler.py +++ b/python/londiste/handler.py @@ -333,6 +333,8 @@ def _parse_arglist(arglist): def create_handler_string(name, arglist): handler = name + if name.find('(') >= 0: + raise Exception('invalid handler name: %s' % name) if arglist: args = _parse_arglist(arglist) astr = skytools.db_urlencode(args) |