aboutsummaryrefslogtreecommitdiffstats
path: root/test/uri
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-29 13:55:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-29 13:55:27 +0000
commit839ee606876c71d6ca2fadf13ee4d0dbfebbf25c (patch)
tree011b86c0b8ba942688fb98a34735c4dced7c7ff6 /test/uri
parentf0a2b08b4461f9c6add51738679ec8e06e3e0fae (diff)
downloadruby-839ee606876c71d6ca2fadf13ee4d0dbfebbf25c.tar.gz
* lib/uri/common.rb (URI::WFKV_): get rid of backtrack explosion
by nested repeat operators. [ruby-core:33464] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/uri')
-rw-r--r--test/uri/test_common.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/uri/test_common.rb b/test/uri/test_common.rb
index 410f46bd0b..2c0bc79cd5 100644
--- a/test/uri/test_common.rb
+++ b/test/uri/test_common.rb
@@ -110,6 +110,8 @@ class TestCommon < Test::Unit::TestCase
assert_raise(ArgumentError){URI.decode_www_form("a=1&%=2")}
assert_raise(ArgumentError){URI.decode_www_form("a=1&b=%")}
assert_raise(ArgumentError){URI.decode_www_form("a&b")}
+ bug4098 = '[ruby-core:33464]'
+ assert_raise(ArgumentError, bug4098){URI.decode_www_form("a=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&b")}
end
end