From a5e00a9e964a17d94d62dbb2a9115ed14738ad82 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 17 Apr 2012 23:34:43 +0200 Subject: [PATCH] Fix PEAR loading, fixes #590 --- src/Composer/Repository/PearRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/PearRepository.php b/src/Composer/Repository/PearRepository.php index 5a5a08a68..14150d84d 100644 --- a/src/Composer/Repository/PearRepository.php +++ b/src/Composer/Repository/PearRepository.php @@ -108,7 +108,7 @@ class PearRepository extends ArrayRepository $categories = $categoryXML->getElementsByTagName("c"); foreach ($categories as $category) { - $link = $this->baseUrl . '/c/' . $category->nodeValue; + $link = $this->baseUrl . '/c/' . str_replace(' ', '+', $category->nodeValue); try { $packagesLink = $link . "/packagesinfo.xml"; $this->fetchPear2Packages($packagesLink);