fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-08-02 10:46 am

[dw-free] recognize https:// as valid feeds

[commit: http://hg.dwscoalition.org/dw-free/rev/d8db00a2d3a2]

http://bugs.dwscoalition.org/show_bug.cgi?id=3721

Recognize https as well as http for feeds.

Patch by [personal profile] yvi.

Files modified:
  • htdocs/feeds/index.bml
--------------------------------------------------------------------------------
diff -r 7613d9e765db -r d8db00a2d3a2 htdocs/feeds/index.bml
--- a/htdocs/feeds/index.bml	Tue Aug 02 18:37:34 2011 +0800
+++ b/htdocs/feeds/index.bml	Tue Aug 02 18:45:47 2011 +0800
@@ -45,7 +45,7 @@
         }
         if ($url ne "") {
             return $error->($ML{'.invalid.url'})
-                unless $url =~ m!^http://([^:/]+)(?::(\d+))?!;
+                unless $url =~ m!^https?://([^:/]+)(?::(\d+))?!;
             my $hostname = $1;
             my $port = $2;
             return $error->($ML{'.invalid.cantadd'})
--------------------------------------------------------------------------------
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2011-08-02 04:25 pm (UTC)(link)
Yay two characters :)