use https
authorMichael Wallner <mike@php.net>
Thu, 7 Apr 2016 10:44:52 +0000 (12:44 +0200)
committerMichael Wallner <mike@php.net>
Mon, 6 Jun 2016 05:13:48 +0000 (07:13 +0200)
bin/pecl+sig

index 4ce3e2feaa353ac18c3b7fcd04cf65170fa1cf32..c1c54438364846bf71de04e1113f2d93ac16bb9c 100755 (executable)
@@ -70,9 +70,9 @@ function work($url, $dir) {
        ]);
 };
 
-if (($sxe = simplexml_load_file("http://pecl.php.net/feeds/$what.rss"))) {
+if (($sxe = simplexml_load_file("https://pecl.php.net/feeds/$what.rss"))) {
        foreach ($sxe->item as $item) {
-               $url = (string) $item->link;
+               $url = str_replace("http://", "https://", (string) $item->link);
                $pkg = basename(dirname($url));
                $ver = basename($url);
                $skp = sprintf("%s/../skip/%s/%s", __DIR__, $pkg, $ver);