Rstrip is a better solution for \x00
This commit is contained in:
parent
6a7f893b27
commit
415346f458
@ -538,9 +538,9 @@ def options_config():
|
|||||||
if CONFIG['SYSTEMS'][_system]['ENABLED'] == True:
|
if CONFIG['SYSTEMS'][_system]['ENABLED'] == True:
|
||||||
if 'OPTIONS' in CONFIG['SYSTEMS'][_system]:
|
if 'OPTIONS' in CONFIG['SYSTEMS'][_system]:
|
||||||
_options = {}
|
_options = {}
|
||||||
|
CONFIG['SYSTEMS'][_system]['OPTIONS'] = CONFIG['SYSTEMS'][_system]['OPTIONS'].rstrip('\x00')
|
||||||
re.sub("\'","",CONFIG['SYSTEMS'][_system]['OPTIONS'])
|
re.sub("\'","",CONFIG['SYSTEMS'][_system]['OPTIONS'])
|
||||||
re.sub("\"","",CONFIG['SYSTEMS'][_system]['OPTIONS'])
|
re.sub("\"","",CONFIG['SYSTEMS'][_system]['OPTIONS'])
|
||||||
re.sub("\x00","",CONFIG['SYSTEMS'][_system]['OPTIONS'])
|
|
||||||
for x in CONFIG['SYSTEMS'][_system]['OPTIONS'].split(";"):
|
for x in CONFIG['SYSTEMS'][_system]['OPTIONS'].split(";"):
|
||||||
try:
|
try:
|
||||||
k,v = x.split('=')
|
k,v = x.split('=')
|
||||||
|
Loading…
Reference in New Issue
Block a user