From 02768d2b258ac6708f206dca5aeb9420e1153257 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 13 Feb 2023 19:23:34 +0100 Subject: [PATCH] wip #5700 --- src/CommandLine/Rclone.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5