Commit e6c1bf49 authored by Ad Schellevis's avatar Ad Schellevis

(captiveportal, new) work in progress script base

parent 27b44c70
......@@ -38,7 +38,7 @@ from lib.ipfw import IPFW
parameters = {'username': '', 'ip_address': None, 'zoneid': None, 'output_type':'plain'}
current_param = None
for param in sys.argv[1:]:
if param[0] == '/':
if len(param) > 1 and param[0] == '/':
current_param = param[1:].lower()
elif current_param is not None:
if current_param in parameters:
......
......@@ -36,7 +36,7 @@ from lib.db import DB
parameters = {'zoneid': None, 'output_type':'plain'}
current_param = None
for param in sys.argv[1:]:
if param[0] == '/':
if len(param) > 1 and param[0] == '/':
current_param = param[1:].lower()
elif current_param is not None:
if current_param in parameters:
......
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