Skip to content

Commit 44c3feb

Browse files
committed
use escapeshellarg on windows symlink
1 parent c7a3ca1 commit 44c3feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Filesystem/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function link($target, $link)
254254

255255
$mode = $this->isDirectory($target) ? 'J' : 'H';
256256

257-
exec("mklink /{$mode} \"{$link}\" \"{$target}\"");
257+
exec("mklink /{$mode} ".escapeshellarg($link)." ".escapeshellarg($target));
258258
}
259259

260260
/**

0 commit comments

Comments
 (0)