From 73b6f0d034a534615db172d05dc65a1613f29de0 Mon Sep 17 00:00:00 2001 From: "tembo-io[bot]" <208362400+tembo-io[bot]@users.noreply.github.com> Date: Wed, 18 Jun 2025 09:08:34 +0000 Subject: [PATCH] fix: properly quote variables in shell commands --- drawClass.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drawClass.php b/drawClass.php index 2967c29..0dab9eb 100755 --- a/drawClass.php +++ b/drawClass.php @@ -29,8 +29,8 @@ for ($i = 0; $i < COLOR_DEPTH; ++$i) { file_put_contents(FILENAME, "$item$i"); shell_exec("git add ."); - shell_exec("git commit -m $item$i"); - shell_exec("git commit --amend --no-edit --date $item$i"); + shell_exec("git commit -m \"$item$i\""); + shell_exec("git commit --amend --no-edit --date \"$item$i\""); } }