We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3664bb commit bdb3dc4Copy full SHA for bdb3dc4
inspections/SyntaxErrorInspection.php
@@ -31,7 +31,8 @@ public function run(){
31
$good = 0;
32
$bad = 0;
33
foreach(new \RegexIterator(new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->dir)), "#\\.php\$#") as $file){
34
- exec("php -l $file 2>&1", $out);
+ $ef = escapeshellarg($file);
35
+ exec("php -l $ef 2>&1", $out);
36
$lint = implode("<br>", $out);
37
if(strpos($lint, "No syntax errors detected in") === 0){
38
$good++;
0 commit comments