Skip to content
Permalink
Browse files Browse the repository at this point in the history
use escapeshellarg on windows symlink
  • Loading branch information
taylorotwell committed May 14, 2019
1 parent c7a3ca1 commit 44c3feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Filesystem/Filesystem.php
Expand Up @@ -254,7 +254,7 @@ public function link($target, $link)

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

exec("mklink /{$mode} \"{$link}\" \"{$target}\"");
exec("mklink /{$mode} ".escapeshellarg($link)." ".escapeshellarg($target));
}

/**
Expand Down

0 comments on commit 44c3feb

Please sign in to comment.