From 3a2b4797e87824d69f99443b89c8061fe0efe0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 7 May 2020 10:47:28 +0300 Subject: [PATCH] Use escapeshellcmd as more appripriate https://www.php.net/manual/en/function.escapeshellcmd.php --- src/Executor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Executor.php b/src/Executor.php index 365238a..030b1e4 100644 --- a/src/Executor.php +++ b/src/Executor.php @@ -16,7 +16,7 @@ public function execute(Filename $commandFilename, $argLine) { $executable = sprintf( '%s %s', - escapeshellarg($commandFilename->asString()), + escapeshellcmd($commandFilename->asString()), $argLine ); exec($executable, $output, $rc);