Skip to content

Commit 31930f4

Browse files
authored
Merge pull request rapid7#19700 from jheysel-r7/fix_send_request_cgi_bang
Fix query param in reconfig_redirect_opts!
2 parents c3cf56f + c7b96f8 commit 31930f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/msf/core/exploit/remote/http_client.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,11 @@ def reconfig_redirect_opts!(res, opts)
499499
end
500500

501501
# Don't forget any GET parameters
502-
opts['query'] ||= location.query if location.query
502+
if location.query
503+
opts['query'] = location.query
504+
else
505+
opts['query'] = ''
506+
end
503507
end
504508

505509
#

0 commit comments

Comments
 (0)