File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -210,14 +210,14 @@ public function getErroredTemplates()
210210
211211 public function testTwigLeakOutputInDebugMode ()
212212 {
213- $ output = exec (sprintf ('%s %s debug ' , \PHP_BINARY , __DIR__ .'/Fixtures/errors/leak-output.php ' ));
213+ $ output = exec (sprintf ('%s %s debug ' , \PHP_BINARY , escapeshellarg ( __DIR__ .'/Fixtures/errors/leak-output.php ' ) ));
214214
215215 $ this ->assertSame ('Hello OOPS ' , $ output );
216216 }
217217
218218 public function testDoesNotTwigLeakOutput ()
219219 {
220- $ output = exec (sprintf ('%s %s ' , \PHP_BINARY , __DIR__ .'/Fixtures/errors/leak-output.php ' ));
220+ $ output = exec (sprintf ('%s %s ' , \PHP_BINARY , escapeshellarg ( __DIR__ .'/Fixtures/errors/leak-output.php ' ) ));
221221
222222 $ this ->assertSame ('' , $ output );
223223 }
You can’t perform that action at this time.
0 commit comments