"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/redmine/wiki_formatting/textile/redcloth3.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

redcloth3.rb  (redmine-4.0.3):redcloth3.rb  (redmine-4.0.4)
skipping to change at line 1215 skipping to change at line 1215
end if tags[tag] end if tags[tag]
"<#{raw[1]}#{pcs.join " "}>" "<#{raw[1]}#{pcs.join " "}>"
else else
" " " "
end end
end end
end end
ALLOWED_TAGS = %w(redpre pre code kbd notextile) ALLOWED_TAGS = %w(redpre pre code kbd notextile)
def escape_html_tags(text) def escape_html_tags(text)
text.gsub!(%r{<(\/?([!\w]+)[^<>\n]*)(>?)}) {|m| ALLOWED_TAGS.include?($2) text.gsub!(%r{<(\/?([!\w]+)[^<>\n]*)(>?)}) do |m|
? "<#{$1}#{$3}" : "&lt;#{$1}#{'&gt;' unless $3.blank?}" } if ALLOWED_TAGS.include?($2) && $3.present?
"<#{$1}#{$3}"
else
"&lt;#{$1}#{'&gt;' unless $3.blank?}"
end
end
end end
end end
 End of changes. 1 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)