aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Search.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2026-02-01 13:06:18 +0100
committerGravatar GitHub <noreply@github.com> 2026-02-01 13:06:18 +0100
commitdae27ebd5d367de034093c26d770d553f4a4e19e (patch)
tree7851f142d3b15d012278b9b0f3547b0a2478d4f9 /app/Models/Search.php
parent7f0164d8b02aed818a53e5f8b07c5c06878dd570 (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.php2
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;