Sfoglia il codice sorgente

Merge r21915 to 4.2-stable (#37751).

git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21964 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.9
Marius Balteanu 1 anno fa
parent
commit
ee74f9b588

+ 5
- 4
test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb Vedi File

@@ -715,10 +715,11 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
end

def test_should_escape_bq_citations
assert_html_output({
%{bq.:http://x/"onmouseover="alert(document.domain) Hover me} =>
%{<blockquote cite="http://x/&quot;onmouseover=&quot;alert(document.domain)">\n\t\t<p>Hover me</p>\n\t</blockquote>}
}, false)
assert_html_output(
{
%{bq.:http://x/"onmouseover="alert(document.domain) Hover me} =>
%{<blockquote cite="http://x/&quot;onmouseover=&quot;alert(document.domain)">\n\t\t<p>Hover me</p>\n\t</blockquote>}
}, false)
end

private

Loading…
Annulla
Salva