diff --git a/lib/msf/core/exploit/remote/http_client.rb b/lib/msf/core/exploit/remote/http_client.rb index 4d578e6b85f7..bdb7db2f78e4 100644 --- a/lib/msf/core/exploit/remote/http_client.rb +++ b/lib/msf/core/exploit/remote/http_client.rb @@ -499,7 +499,11 @@ def reconfig_redirect_opts!(res, opts) end # Don't forget any GET parameters - opts['query'] ||= location.query if location.query + if location.query + opts['query'] = location.query + else + opts['query'] = '' + end end #