diff --git a/core/database.class.php b/core/database.class.php index 766a8a23..8ac5309f 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -95,7 +95,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; }