share token could still contain "+", which Vfs::encodePathComponent was not encoding

fixes some files not opening in Collabora
This commit is contained in:
Ralf Becker 2017-08-30 18:09:54 +02:00
parent 3f06a89db5
commit c886d567f9

View File

@ -371,7 +371,7 @@ class Sharing
base64_encode(openssl_random_pseudo_bytes(3*self::TOKEN_LENGTH/4)) :
Api\Auth::randomstring(self::TOKEN_LENGTH);
// base64 can contain chars not allowed in our vfs-urls eg. / or #
} while ($token != Vfs::encodePathComponent($token));
} while ($token != urlencode($token));
return $token;
}