fixed API listener options handling to prevent unicode errors

php_fix
Dan 2018-02-01 14:09:52 -07:00
parent 4469f61ec2
commit 39b26e95d7
1 changed files with 1 additions and 0 deletions

1
empire
View File

@ -721,6 +721,7 @@ def start_restful_api(empireMenu, suppress=False, username=None, password=None,
listenerObject = main.listeners.loadedListeners[listener_type]
# set all passed options
for option, values in request.json.iteritems():
values = values.encode('utf8')
if option == "Name":
listenerName = values