fixed unicode listener options

php_fix
Dan 2018-02-25 20:42:02 -07:00
parent b7cff0456b
commit c8d4d2aa27
1 changed files with 1 additions and 1 deletions

2
empire
View File

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