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);