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'})
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org