Skip to content

Commit

Permalink
Escape metainfo to prevent bash syntax errors (deployphp#3328)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell authored and schmengler committed Oct 31, 2022
1 parent ff9dc87 commit 967f78a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipe/deploy/release.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@
];

// Save metainfo about release.
$json = json_encode($metainfo);
run("echo '$json' >> .dep/releases_log");
$json = escapeshellarg(json_encode($metainfo));
run("echo $json >> .dep/releases_log");

// Make new release.
run("mkdir -p $releasePath");
Expand Down

0 comments on commit 967f78a

Please sign in to comment.