Skip to content

Commit b0d4786

Browse files
committed
Escape shell arguments.
1 parent 8216514 commit b0d4786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function getPHPVersion() {
162162
*/
163163
public function checkSyntax($filePath) {
164164
$binary = $this->getPHPBinaryPath();
165-
exec($binary.' -l '.$filePath.' 2>&1', $output);
165+
exec($binary.' -l '.escapeshellarg($filePath).' 2>&1', $output);
166166

167167
$syntax = [];
168168
$errorMsgLine = ' in '.$filePath;

0 commit comments

Comments
 (0)