Skip to content
Snippets Groups Projects
Commit decb51ae authored by Robin Appelman's avatar Robin Appelman Committed by Bjoern Schiessle
Browse files

Fix deleting of external shares

parent 3f2cb39a
Branches
No related tags found
No related merge requests found
...@@ -124,6 +124,7 @@ class Manager { ...@@ -124,6 +124,7 @@ class Manager {
} }
public function removeShare($mountPoint) { public function removeShare($mountPoint) {
$mountPoint = $this->stripPath($mountPoint);
$hash = md5($mountPoint); $hash = md5($mountPoint);
$query = $this->connection->prepare('DELETE FROM *PREFIX*share_external WHERE `mountpoint_hash` = ?'); $query = $this->connection->prepare('DELETE FROM *PREFIX*share_external WHERE `mountpoint_hash` = ?');
return (bool)$query->execute(array($hash)); return (bool)$query->execute(array($hash));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment