summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-08 20:31:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-08 20:31:36 +0000
commit0389c60129636969d3727b752625d95a559deff6 (patch)
tree1d540e9e28e4b3c0251d61d160c648d39f1951a3 /lib
parentd77c1d2829f985c418442940c623ec6ec5d5457b (diff)
downloadredmine-0389c60129636969d3727b752625d95a559deff6.tar.gz
redmine-0389c60129636969d3727b752625d95a559deff6.zip
Fixed: notextile tag has no effect.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1517 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redcloth.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcloth.rb b/lib/redcloth.rb
index 3880eb9d3..42eddd8e0 100644
--- a/lib/redcloth.rb
+++ b/lib/redcloth.rb
@@ -1149,7 +1149,7 @@ class RedCloth < String
end
end
- ALLOWED_TAGS = %w(redpre pre code)
+ ALLOWED_TAGS = %w(redpre pre code notextile)
def escape_html_tags(text)
text.gsub!(%r{<(\/?([!\w]+)[^<>\n]*)(>?)}) {|m| ALLOWED_TAGS.include?($2) ? "<#{$1}#{$3}" : "&lt;#{$1}#{'&gt;' unless $3.blank?}" }