Skip to content

Commit be0ca39

Browse files
authored
Merge pull request #11 from clee-r7/fix-workspace-query-data-remote-http-data-service
Fix issue with workspace in query data
2 parents 8e09c9d + 3a01a16 commit be0ca39

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)