We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79fe73 commit c35dc4dCopy full SHA for c35dc4d
modules/auxiliary/scanner/http/http_traversal.rb
@@ -143,8 +143,8 @@ def ini_request(uri)
143
# We expect it to regex the GET parameters:
144
# 'page=1&id=3¬e=whatever'
145
# And then let queryparse() to handle the rest
146
- data = uri.match(/\?(\w+=.+&*)$/)
147
- req['vars_get'] = queryparse(data[1]) if not data.nil?
+ query_params = uri.match(/\?(\w+=.+&*)$/)
+ req['vars_get'] = queryparse(query_params[1]) if query_params
148
when 'POST'
149
req['vars_post'] = queryparse(data) if not data.empty?
150
when 'PUT'
0 commit comments