Skip to content

Commit 3a01a16

Browse files
committed
Fix issue with workspace in query data
1 parent 8e09c9d commit 3a01a16

File tree

1 file changed

+1
-1
lines changed
  • lib/metasploit/framework/data_service/remote/http

1 file changed

+1
-1
lines changed

lib/metasploit/framework/data_service/remote/http/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def put_data(path, data_hash, query = nil)
108108
#
109109
def make_request(request_type, path, data_hash = nil, query = nil)
110110
begin
111-
query_str = (!query.nil? && !query.empty?) ? URI.encode_www_form(query) : nil
111+
query_str = (!query.nil? && !query.empty?) ? URI.encode_www_form(append_workspace(query)) : nil
112112
uri = URI::HTTP::build({path: path, query: query_str})
113113
puts "#{Time.now} - HTTP #{request_type} request to #{uri.request_uri} with #{data_hash ? data_hash : "nil"}"
114114

0 commit comments

Comments
 (0)