Skip to content

Commit

Permalink
Unset opts query if no location.query
Browse files Browse the repository at this point in the history
  • Loading branch information
jheysel-r7 committed Dec 6, 2024
1 parent a544805 commit c7b96f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/msf/core/exploit/remote/http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand Down

0 comments on commit c7b96f8

Please sign in to comment.