From 2c75f8e780e674ddb42c935b54ed6c39925ba07c Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 3 Jan 2016 15:29:15 +0100 Subject: Fixes #426 - Do not filter with blank tags. --- application/LinkDB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/LinkDB.php') diff --git a/application/LinkDB.php b/application/LinkDB.php index be7d9016..16848519 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -351,7 +351,7 @@ You use the community supported version of the original Shaarli project, by Seba */ public function filter($type, $request, $casesensitive = false, $privateonly = false) { $requestFilter = is_array($request) ? implode(' ', $request) : $request; - return $this->linkFilter->filter($type, $requestFilter, $casesensitive, $privateonly); + return $this->linkFilter->filter($type, trim($requestFilter), $casesensitive, $privateonly); } /** -- cgit v1.2.3