From cb971fcb0edaa1e021279e8fb849253bd2bf52fc Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 17 Mar 2016 11:24:22 +0000 Subject: [PATCH] Hijack pear.php.net from http to force https, refs #5071 --- src/Composer/Repository/Pear/BaseChannelReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Pear/BaseChannelReader.php b/src/Composer/Repository/Pear/BaseChannelReader.php index a9b87c228..dbb769487 100644 --- a/src/Composer/Repository/Pear/BaseChannelReader.php +++ b/src/Composer/Repository/Pear/BaseChannelReader.php @@ -57,7 +57,7 @@ abstract class BaseChannelReader throw new \UnexpectedValueException('The PEAR channel at ' . $url . ' did not respond.'); } - return $content; + return str_replace('http://pear.php.net/rest/', 'https://pear.php.net/rest/', $content); } /**