diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-29 14:03:09 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-29 14:03:09 +0100 |
commit | 82de50d5b933e43bca8c1d3da155f6a8061f6e4a (patch) | |
tree | 65d0418975d9dee33e5668511d44820005f2e6b8 | |
parent | 55142186deb9e163ce3519453ebfe93f6a446666 (diff) | |
download | nextcloud-server-82de50d5b933e43bca8c1d3da155f6a8061f6e4a.tar.gz nextcloud-server-82de50d5b933e43bca8c1d3da155f6a8061f6e4a.zip |
remove trailing slash
-rw-r--r-- | lib/private/share/share.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index c9f9654203e..b2c84e39044 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -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; |