提交 43e2bbe2 编写于 作者: S Santiago Pastorino

Making time_zone_options_for_select return a html_safe string master backport

上级 b154b97e
......@@ -481,7 +481,7 @@ def time_zone_options_for_select(selected = nil, priority_zones = nil, model = :
end
zone_options += options_for_select(convert_zones[zones], selected)
zone_options
zone_options.html_safe
end
private
......
......@@ -280,6 +280,10 @@ def test_time_zone_options_with_unselected_priority_zones
opts
end
def test_time_zone_options_returns_html_safe_string
assert time_zone_options_for_select.html_safe?
end
def test_select
@post = Post.new
@post.category = "<mus>"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册