Skip to content

Commit

Permalink
use escapeshellarg on windows symlink
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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

1 comment on commit 44c3feb

@iszmxw
Copy link

@iszmxw iszmxw commented on 44c3feb Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mark

Please sign in to comment.