Changed hash key syntax from previous commit.
Besides being consistent, Sinatra actually requires the string syntax.
This commit is contained in:
@@ -127,7 +127,7 @@ module Dns
|
||||
end
|
||||
|
||||
result = {}
|
||||
result[:success] = BeEF::Extension::Dns::Server.instance.remove_rule(id)
|
||||
result['success'] = BeEF::Extension::Dns::Server.instance.remove_rule(id)
|
||||
result.to_json
|
||||
rescue InvalidParamError => e
|
||||
print_error e.message
|
||||
|
||||
Reference in New Issue
Block a user