提交 14243439 编写于 作者: A Akira Matsuda

ERB::Util.url_encode no longer escapes ~ since ruby 2.5

see: https://bugs.ruby-lang.org/issues/6696
上级 c762563f
......@@ -615,8 +615,8 @@ def test_mail_to
def test_mail_to_with_special_characters
assert_dom_equal(
%{<a href="mailto:%23%21%24%25%26%27%2A%2B-%2F%3D%3F%5E_%60%7B%7D%7C%7E@example.org">#!$%&amp;&#39;*+-/=?^_`{}|~@example.org</a>},
mail_to("#!$%&'*+-/=?^_`{}|~@example.org")
%{<a href="mailto:%23%21%24%25%26%27%2A%2B-%2F%3D%3F%5E_%60%7B%7D%7C@example.org">#!$%&amp;&#39;*+-/=?^_`{}|@example.org</a>},
mail_to("#!$%&'*+-/=?^_`{}|@example.org")
)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册