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
This commit is contained in:
Jean-Philippe Lang 2008-03-29 09:24:09 +00:00
parent 6331809bd9
commit 85858cebe6
1 changed files with 1 additions and 1 deletions

View File

@ -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