Merge pull request #12479 from rclarkson/master

Limit blacklist to php files
This commit is contained in:
Morris Jobke 2014-11-28 09:29:15 +01:00
commit 99d0e7e92d

View file

@ -568,7 +568,7 @@ class OC_Installer{
// iterate the bad patterns
foreach($blacklist as $bl) {
$cmd = 'grep -ri '.escapeshellarg($bl).' '.$folder.'';
$cmd = 'grep --include \\*.php -ri '.escapeshellarg($bl).' '.$folder.'';
$result = exec($cmd);
// bad pattern found
if($result<>'') {