Skip to content

Commit 6abbe05

Browse files
committed
relax a ReDoS test
1 parent 68a1317 commit 6abbe05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/test/rails_lts/uri_patch_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class UriPatchTest < ActiveSupport::TestCase
66
vulnerable_uri = 'https://example.com/dir/' + 'a' * (100000) + '/##.jpg' # Approx. 4s without a patch
77

88
assert_raises(URI::InvalidURIError) do
9-
Timeout.timeout(0.1) { URI.parse(vulnerable_uri) }
9+
Timeout.timeout(0.3) { URI.parse(vulnerable_uri) }
1010
end
1111
end
1212
end

0 commit comments

Comments
 (0)