aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/searchController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/searchController.php')
-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;
}