use https
[pharext/replicator.pharext.org] / 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);