]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix deleting of external shares
authorRobin Appelman <icewind@owncloud.com>
Thu, 12 Jun 2014 14:20:35 +0000 (16:20 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Sat, 14 Jun 2014 08:14:08 +0000 (10:14 +0200)
apps/files_sharing/lib/external/manager.php

index a1a971265063703f2852fb6528b97ca57f58d446..53e8121b7f6e04a7ecd2a0c335dd148285a60004 100644 (file)
@@ -124,6 +124,7 @@ class Manager {
        }
 
        public function removeShare($mountPoint) {
+               $mountPoint = $this->stripPath($mountPoint);
                $hash = md5($mountPoint);
                $query = $this->connection->prepare('DELETE FROM *PREFIX*share_external WHERE `mountpoint_hash` = ?');
                return (bool)$query->execute(array($hash));