From dae27ebd5d367de034093c26d770d553f4a4e19e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 1 Feb 2026 13:06:18 +0100 Subject: Fix wrong search toString in case of regex-looking string (#8479) `author:'/u/Alice'` was missing its quotes during serialisation, transforming it to a regex. --- app/Models/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/Search.php') diff --git a/app/Models/Search.php b/app/Models/Search.php index 4d33f36b2..aca21e558 100644 --- a/app/Models/Search.php +++ b/app/Models/Search.php @@ -149,7 +149,7 @@ class FreshRSS_Search implements \Stringable { } private static function quote(string $s): string { - if (strpbrk($s, ' "\'\\') !== false || $s === '') { + if (strpbrk($s, ' "\'\\/') !== false || $s === '') { return '"' . addcslashes($s, '\\"') . '"'; } return $s; -- cgit v1.2.3