Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
escapeshellarg (#17)
Browse files Browse the repository at this point in the history
a project path may have spaces or other characters that need to be escaped
  • Loading branch information
davidwebca authored and QWp6t committed Aug 17, 2018
1 parent 0c0e962 commit f511e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ComposerScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(Event $event = null)

public static function postCreateProject(Event $event)
{
$sage = dirname(__DIR__).'/bin/sage';
$sage = escapeshellarg(dirname(__DIR__).'/bin/sage');
(new static($event))
->validate()
->run(new Process(sprintf('php %s %s', $sage, 'meta')))
Expand Down

0 comments on commit f511e9a

Please sign in to comment.