Skip to content

Commit eb56690

Browse files
committed
use escapeshellarg
1 parent 4b7020f commit eb56690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/builder/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function getConfigureArg(bool $shared = false): string
8383
*/
8484
public function getEnableArg(bool $shared = false): string
8585
{
86-
$escapedPath = str_replace("'", '', escapeshellarg(BUILD_ROOT_PATH)) !== BUILD_ROOT_PATH || str_contains(BUILD_ROOT_PATH, ' ') ? '"' . BUILD_ROOT_PATH . '"' : BUILD_ROOT_PATH;
86+
$escapedPath = str_replace("'", '', escapeshellarg(BUILD_ROOT_PATH)) !== BUILD_ROOT_PATH || str_contains(BUILD_ROOT_PATH, ' ') ? escapeshellarg(BUILD_ROOT_PATH) : BUILD_ROOT_PATH;
8787
$_name = str_replace('_', '-', $this->name);
8888
return match ($arg_type = Config::getExt($this->name, 'arg-type', 'enable')) {
8989
'enable' => '--enable-' . $_name . ($shared ? '=shared' : '') . ' ',

0 commit comments

Comments
 (0)