From 6dd753a3d41533c0461d8dbb2b39695d60b911ea Mon Sep 17 00:00:00 2001 From: nadir Date: Wed, 3 Feb 2016 11:53:20 +0100 Subject: [PATCH] Fix for sharing files with quotes ' on it's name --- lib/private/files/objectstore/eosutil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/objectstore/eosutil.php b/lib/private/files/objectstore/eosutil.php index 499d3da789da..137ba1713efe 100644 --- a/lib/private/files/objectstore/eosutil.php +++ b/lib/private/files/objectstore/eosutil.php @@ -762,7 +762,7 @@ public static function createVersion($eosPath) { $eosPathEscaped = escapeshellarg($eosPath); list($uid, $gid) = self::getEosRole($eosPath, false); //$uid = 0; $gid = 0; // root is the only one allowed to change permissions - $cmd = "eos -b -r $uid $gid cp $eosPathEscaped $eosPathEscaped"; + $cmd = "eos -b -r $uid $gid file version $eosPathEscaped"; list($result, $errcode) = EosCmd::exec($cmd); if ($errcode !== 0) { return false;