Leave https wikipedia URLs unmolested
authorTom Hughes <tom@compton.nu>
Mon, 6 Feb 2012 08:54:10 +0000 (08:54 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 6 Feb 2012 08:54:10 +0000 (08:54 +0000)
app/helpers/browse_helper.rb

index ebcd58d..de439d5 100644 (file)
@@ -78,7 +78,7 @@ private
 
   def wikipedia_link(key, value)
     # Some k/v's are wikipedia=http://en.wikipedia.org/wiki/Full%20URL
-    return nil if value =~ /^http:\/\//
+    return nil if value =~ /^https?:\/\//
 
     if key == "wikipedia"
       # This regex should match Wikipedia language codes, everything