Commit 86388566 authored by Ad Schellevis's avatar Ad Schellevis

(captiveportal, new) a sessionid may start with a slash

parent 1f66fa6a
......@@ -37,10 +37,9 @@ from lib.ipfw import IPFW
parameters = {'sessionid': None, 'zoneid': None, 'output_type': 'plain'}
current_param = None
for param in sys.argv[1:]:
if len(param) > 1 and param[0] == '/':
if len(param) > 1 and param[0] == '/' and param[1:] in parameters:
current_param = param[1:].lower()
elif current_param is not None:
if current_param in parameters:
parameters[current_param] = param.strip()
current_param = None
......
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