1
0
Fork 0

CS fixes, refs #1419

pull/1410/merge
Jordi Boggiano 2012-12-13 15:37:11 +01:00
parent 702742e15f
commit 5fd19f63dd
1 changed files with 3 additions and 3 deletions

View File

@ -624,10 +624,10 @@ class Installer
throw new \LogicException('isUpdateable should only be called when a whitelist is present');
}
foreach($this->updateWhitelist as $whiteListedPattern => $void) {
$cleanedWhiteListedPattern = str_replace('\*', '.*', preg_quote($whiteListedPattern));
foreach ($this->updateWhitelist as $whiteListedPattern => $void) {
$cleanedWhiteListedPattern = str_replace('\\*', '.*', preg_quote($whiteListedPattern));
if(preg_match("#^".$cleanedWhiteListedPattern."$#i", $package->getName())) {
if (preg_match("#^".$cleanedWhiteListedPattern."$#i", $package->getName())) {
return true;
}
}