From: Vincent Vanwaelscappel Date: Mon, 13 Feb 2023 18:23:34 +0000 (+0100) Subject: wip #5700 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=02768d2b258ac6708f206dca5aeb9420e1153257;p=cubist_util.git wip #5700 --- diff --git a/src/CommandLine/Rclone.php b/src/CommandLine/Rclone.php index c957d6a..d9372ba 100644 --- a/src/CommandLine/Rclone.php +++ b/src/CommandLine/Rclone.php @@ -43,8 +43,8 @@ class Rclone extends CloneUserpassProgram protected function getObscuredPassword() { $password = $this->getPassword(); - cache()->rememberForever('rclone_obscure_' . sha1($this->getPassword()), function () use ($password) { - return `rclone obscure $password`; + return cache()->rememberForever('rclone_obscure__' . sha1($this->getPassword()), function () use ($password) { + return trim(`rclone obscure $password`); }); } } \ No newline at end of file