Fixes #880: code tags not formatted correctly in the wiki (broken by r1216).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1271 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-03-17 23:01:35 +00:00
parent 1c4bcc5b55
commit 7673d69b96
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -1130,7 +1130,7 @@ class RedCloth < String
end
end
ALLOWED_TAGS = %w(redpre pre)
ALLOWED_TAGS = %w(redpre pre code)
def escape_html_tags(text)
text.gsub!(%r{<((\/?)(\w+))}) {|m| ALLOWED_TAGS.include?($3) ? "<#{$1}" : "&lt;#{$1}" }