Skip to content

Commit adc241f

Browse files
committed
Last one, I say
1 parent 17193e0 commit adc241f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/dos/http/rails_action_view.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def normalize_uri(*strs)
6767
new_str = new_str.gsub!("//", "/") while new_str.index("//")
6868

6969
# Makes sure there's a starting slash
70-
unless new_str[0,1] == '/'
70+
unless new_str.start_with?("/")
7171
new_str = '/' + new_str
7272
end
7373

0 commit comments

Comments
 (0)