diff --git a/core/database.class.php b/core/database.class.php index 41a8858f..0696f10b 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -116,7 +116,7 @@ class Database { public function sanitise($tag) { $tag = preg_replace("/[\s?*]/", "", $tag); $tag = preg_replace("/\.+/", ".", $tag); - $tag = preg_replace("/^[\.\/]+/", "", $tag); + $tag = preg_replace("/^(\.+[\/\\\\])+/", "", $tag); return $tag; }