diff options
Diffstat (limited to 'app/class/config.php')
-rw-r--r-- | app/class/config.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/class/config.php b/app/class/config.php index 5c05657..71ce329 100644 --- a/app/class/config.php +++ b/app/class/config.php @@ -465,8 +465,11 @@ abstract class Config public static function addbookmark(string $id, string $query) { - $id = idclean($id); + if(!empty($id) && !empty($query)) { + $id = idclean($id); + $id = substr($id, 0, 16); self::$bookmark[$id] = $query; + } } public static function deletebookmark(string $id) |