Commit 85858ceb authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed: https urls in the wiki are not displayed as external (closes #943).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1301 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6331809b
......@@ -786,7 +786,7 @@ class RedCloth < String
atts << " title=\"#{ title }\"" if title
atts = shelve( atts ) if atts
external = (url =~ /^http:\/\//) ? ' class="external"' : ''
external = (url =~ /^https?:\/\//) ? ' class="external"' : ''
"#{ pre }<a#{ atts }#{ external }>#{ text }</a>#{ post }"
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