]> source.dussan.org Git - redmine.git/commitdiff
Fixed: https urls in the wiki are not displayed as external (closes #943).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 29 Mar 2008 09:24:09 +0000 (09:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 29 Mar 2008 09:24:09 +0000 (09:24 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1301 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redcloth.rb

index 9452c267076a710345101b347bb76383d6e0190c..5ed23b8f783cc36447e4ff4ffef57e98d0db216d 100644 (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