diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-29 09:24:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-29 09:24:09 +0000 |
commit | 85858cebe64ab4ec404e1db2220b0cdfb7c5d32f (patch) | |
tree | 5a0f07e07c34de3ad38470fa84be400d5e2c3f11 | |
parent | 6331809bd9cf27bbe4198ae923ce6fec23f35fe2 (diff) | |
download | redmine-85858cebe64ab4ec404e1db2220b0cdfb7c5d32f.tar.gz redmine-85858cebe64ab4ec404e1db2220b0cdfb7c5d32f.zip |
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
-rw-r--r-- | lib/redcloth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 }<a#{ atts }#{ external }>#{ text }</a>#{ post }" end |