Skip to content

Commit

Permalink
Fix for sharing files with quotes ' on it's name
Browse files Browse the repository at this point in the history
  • Loading branch information
nadir committed Feb 3, 2016
1 parent 5c6eeaf commit 6dd753a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/files/objectstore/eosutil.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6dd753a

Please sign in to comment.