diff options
| author | 2025-11-17 20:39:45 +0100 | |
|---|---|---|
| committer | 2025-11-17 20:39:45 +0100 | |
| commit | 8fdc574827c668f098995891eac41f0688b842b6 (patch) | |
| tree | ac459202f50fb63124a33f736024e21f92052083 | |
| parent | f5d14af156884250c3445cbc82e4d4fd5771ff31 (diff) | |
Fix search form for regex (#8226)
Wrongly quoted
Cherry-picked from https://github.com/FreshRSS/FreshRSS/pull/8131
| -rw-r--r-- | app/Controllers/searchController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/searchController.php b/app/Controllers/searchController.php index 616c4c878..f953fd14a 100644 --- a/app/Controllers/searchController.php +++ b/app/Controllers/searchController.php @@ -52,7 +52,7 @@ class FreshRSS_search_Controller extends FreshRSS_ActionController { if ($line === '') { continue; } - $quoted = preg_match('/\s/', $line) === 1 ? "'$line'" : $line; + $quoted = str_contains($line, ' ') && !str_starts_with($line, '/') ? "'$line'" : $line; $terms[] = $prefix . $quoted; } |
