Merge pull request #12479 from rclarkson/master
Limit blacklist to php files
This commit is contained in:
commit
99d0e7e92d
1 changed files with 1 additions and 1 deletions
|
@ -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<>'') {
|
||||
|
|
Loading…
Reference in a new issue