Commit f25f8ae1 authored by jplang's avatar jplang

Do not recognize invalid textile attributes.

git-svn-id: https://svn.redmine.org/redmine/trunk@8902 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 74578e7a
......@@ -340,9 +340,9 @@ class RedCloth3 < String
#
A_HLGN = /(?:(?:<>|<|>|\=|[()]+)+)/
A_VLGN = /[\-^~]/
C_CLAS = '(?:\([^)]+\))'
C_LNGE = '(?:\[[^\[\]]+\])'
C_STYL = '(?:\{[^}]+\})'
C_CLAS = '(?:\([^")]+\))'
C_LNGE = '(?:\[[^"\[\]]+\])'
C_STYL = '(?:\{[^"}]+\})'
S_CSPN = '(?:\\\\\d+)'
S_RSPN = '(?:/\d+)'
A = "(?:#{A_HLGN}?#{A_VLGN}?|#{A_VLGN}?#{A_HLGN}?)"
......
......@@ -99,7 +99,7 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
'p{color:(red)}. text' => '<p>text</p>',
'p{color:red;invalid:blue}. text' => '<p style="color:red;">text</p>',
'p{invalid:blue;color:red}. text' => '<p style="color:red;">text</p>',
'p{color:"}. text' => '<p>text</p>',
'p{color:"}. text' => '<p>p{color:"}. text</p>',
}, false)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment