Update empire

php_fix
Dan McInerney 2018-02-12 12:29:19 -07:00 committed by GitHub
parent c8eaf07949
commit e751a6d1ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) != int: if type(values) == str:
values = values.encode('utf8') values = values.encode('utf8')
if option == "Name": if option == "Name":
listenerName = values listenerName = values