Merge pull request #13762 from owncloud/ignore_trailing_slash
ignore trailing slash for remote URL
This commit is contained in:
commit
2c1bacadca
1 changed files with 1 additions and 0 deletions
|
@ -706,6 +706,7 @@ class Share extends \OC\Share\Constants {
|
|||
$token = \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate(self::TOKEN_LENGTH, \OCP\Security\ISecureRandom::CHAR_LOWER . \OCP\Security\ISecureRandom::CHAR_UPPER .
|
||||
\OCP\Security\ISecureRandom::CHAR_DIGITS);
|
||||
|
||||
$shareWith = rtrim($shareWith, '/');
|
||||
$shareId = self::put($itemType, $itemSource, $shareType, $shareWith, $uidOwner, $permissions, null, $token, $itemSourceName);
|
||||
|
||||
$send = false;
|
||||
|
|
Loading…
Reference in a new issue