Skip to content

Commit 8c23e8c

Browse files
committed
ruby 2.2 compatibility
Fix circular argument reference warnings for ruby 2.2
1 parent 478505c commit 8c23e8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/scanner/http/ektron_cms400net.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ def get_version
124124
end
125125
end
126126

127-
def do_login(user=nil, pass=nil, viewstate=viewstate, eventvalidation=eventvalidation)
127+
def do_login(user=nil, pass=nil, viewstate_arg=viewstate, eventvalidation_arg=eventvalidation)
128128
vprint_status("#{target_url} - Trying: username:'#{user}' with password:'#{pass}'")
129129

130-
post_data = "__VIEWSTATE=#{Rex::Text.uri_encode(viewstate.to_s)}"
131-
post_data << "&__EVENTVALIDATION=#{Rex::Text.uri_encode(eventvalidation.to_s)}"
130+
post_data = "__VIEWSTATE=#{Rex::Text.uri_encode(viewstate_arg.to_s)}"
131+
post_data << "&__EVENTVALIDATION=#{Rex::Text.uri_encode(eventvalidation_arg.to_s)}"
132132
post_data << "&username=#{Rex::Text.uri_encode(user.to_s)}"
133133
post_data << "&password=#{Rex::Text.uri_encode(pass.to_s)}"
134134

0 commit comments

Comments
 (0)