From aa27a37064693e806ab7f09cbbd964767a3e2aa5 Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Mon, 12 Aug 2024 16:33:00 -0400 Subject: [PATCH] review: addressing --- src/Appwrite/Platform/Workers/Builds.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Builds.php b/src/Appwrite/Platform/Workers/Builds.php index 62c44c60cd..f77afcb952 100644 --- a/src/Appwrite/Platform/Workers/Builds.php +++ b/src/Appwrite/Platform/Workers/Builds.php @@ -244,10 +244,10 @@ class Builds extends Action $rootDirectoryWithoutSpaces = str_replace(' ', '', $rootDirectory); $from = $tmpDirectory . '/' . $rootDirectory; $to = $tmpDirectory . '/' . $rootDirectoryWithoutSpaces; - $exit = Console::execute('mv "' . $from . '" "' . $to . '"', '', $stdout, $stderr); + $exit = Console::execute('mv "' . \escapeshellcmd($from) . '" "' . \escapeshellcmd($to) . '"', '', $stdout, $stderr); if ($exit !== 0) { - throw new \Exception('Unable to remove function spaces' . $stderr); + throw new \Exception('Unable to move function with spaces' . $stderr); } $rootDirectory = $rootDirectoryWithoutSpaces; }