From 85858cebe64ab4ec404e1db2220b0cdfb7c5d32f 2008-03-29 09:24:09 From: Jean-Philippe Lang Date: 2008-03-29 09:24:09 Subject: [PATCH] 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 9452c26..5ed23b8 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