Skip to content

Commit

Permalink
Updated to Ruby 2.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapotek committed Feb 18, 2022
1 parent c65e69e commit f297f30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.6.9
ruby-2.7.5
2 changes: 1 addition & 1 deletion lib/arachni/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ def enforce_scope?
end

def normalize_watir_url( url )
normalize_url( ::URI.encode( url, ';' ) ).gsub( '%3B', '%253B' )
normalize_url( url.gsub( ';', '%3B' ) ).gsub( '%3B', '%253B' )
end

end
Expand Down
3 changes: 2 additions & 1 deletion lib/arachni/uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,8 @@ def query_parameters
@query_parameters ||= begin
q.split( '&' ).inject( {} ) do |h, pair|
name, value = pair.split( '=', 2 )
h[::URI.decode( name.to_s )] = ::URI.decode( value.to_s )
h[::URI.decode_www_form_component( name.to_s )] =
::URI.decode_www_form_component( value.to_s )
h
end
end
Expand Down

0 comments on commit f297f30

Please sign in to comment.