diff options
| author | 2026-02-01 13:06:18 +0100 | |
|---|---|---|
| committer | 2026-02-01 13:06:18 +0100 | |
| commit | dae27ebd5d367de034093c26d770d553f4a4e19e (patch) | |
| tree | 7851f142d3b15d012278b9b0f3547b0a2478d4f9 /app/Models/Search.php | |
| parent | 7f0164d8b02aed818a53e5f8b07c5c06878dd570 (diff) | |
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.
Diffstat (limited to 'app/Models/Search.php')
| -rw-r--r-- | app/Models/Search.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
