]> git.openstreetmap.org Git - rails.git/commitdiff
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 ebcd58dd042b7671ed5f8e9dfd462189899deb07..de439d56fc6700a0c0973b9ad88bd3759b6d2aa9 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
 
   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
 
     if key == "wikipedia"
       # This regex should match Wikipedia language codes, everything