summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-01-29 14:03:09 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2015-01-29 14:03:09 +0100
commit82de50d5b933e43bca8c1d3da155f6a8061f6e4a (patch)
tree65d0418975d9dee33e5668511d44820005f2e6b8
parent55142186deb9e163ce3519453ebfe93f6a446666 (diff)
downloadnextcloud-server-82de50d5b933e43bca8c1d3da155f6a8061f6e4a.tar.gz
nextcloud-server-82de50d5b933e43bca8c1d3da155f6a8061f6e4a.zip
remove trailing slash
-rw-r--r--lib/private/share/share.php1
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;