]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove trailing slash
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 29 Jan 2015 13:03:09 +0000 (14:03 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Thu, 29 Jan 2015 13:03:09 +0000 (14:03 +0100)
lib/private/share/share.php

index c9f9654203ee891c6de31d5d9b79e0e623288473..b2c84e390446e58016f5e32ea65525c6b56d1034 100644 (file)
@@ -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;