From 470ff90cfa4fa50a25e428454465da37aff0aa40 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 21 Aug 2019 14:00:11 +0200 Subject: Bug fix : limit bookmark id length --- app/class/config.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/class/config.php') 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) -- cgit v1.2.3