aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-11-17 20:39:45 +0100
committerGravatar GitHub <noreply@github.com> 2025-11-17 20:39:45 +0100
commit8fdc574827c668f098995891eac41f0688b842b6 (patch)
treeac459202f50fb63124a33f736024e21f92052083 /app/Controllers
parentf5d14af156884250c3445cbc82e4d4fd5771ff31 (diff)
Fix search form for regex (#8226)
Wrongly quoted Cherry-picked from https://github.com/FreshRSS/FreshRSS/pull/8131
Diffstat (limited to 'app/Controllers')
-rw-r--r--app/Controllers/searchController.php2
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;
}