From: Jean-Philippe Lang Date: Sat, 29 Mar 2008 09:24:09 +0000 (+0000) Subject: Fixed: https urls in the wiki are not displayed as external (closes #943). X-Git-Tag: 0.7.0-RC1~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=85858cebe64ab4ec404e1db2220b0cdfb7c5d32f;p=redmine.git 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 --- diff --git a/lib/redcloth.rb b/lib/redcloth.rb index 9452c2670..5ed23b8f7 100644 --- a/lib/redcloth.rb +++ b/lib/redcloth.rb @@ -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 }#{ text }#{ post }" end