escapeshellarg
laravel/framework
Supported Versions: PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8
Escape a string to be used as a shell argument
escapeshellarg
(
string $arg
):
string
$mode
=
$this
->
isDirectory
(
$target
) ?
'J'
:
'H'
;
exec
(
"mklink /
{
$mode
}
"
.
escapeshellarg
(
$link
).
' '
.
escapeshellarg
(
$target
));
}
src/Illuminate/Filesystem/Filesystem.php