aboutsummaryrefslogtreecommitdiff
path: root/app/Models/BooleanSearch.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-09-05 17:33:38 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-05 17:33:38 +0200
commit2e1d45a88d2cfd439f4f9e7d92ca9c8cbdb39466 (patch)
tree7953ca9e234c5c9c38eaa671cf00568a376d72a1 /app/Models/BooleanSearch.php
parent1c7c1016f4a5147003ed1c438b8a386a63a53cab (diff)
Fix parenthesis escaping bug (#5633)
fix https://github.com/FreshRSS/FreshRSS/issues/5632 In the SQL search, parentheses should not be escaped. Escaped parenthesis in the SQL search were tolerated by PostgreSQL but not by SQLite.
Diffstat (limited to 'app/Models/BooleanSearch.php')
-rw-r--r--app/Models/BooleanSearch.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/BooleanSearch.php b/app/Models/BooleanSearch.php
index 5cfcd9342..0a50464de 100644
--- a/app/Models/BooleanSearch.php
+++ b/app/Models/BooleanSearch.php
@@ -233,7 +233,7 @@ class FreshRSS_BooleanSearch {
private function parseOrSegments(string $input): void {
$input = trim($input);
- if ($input == '') {
+ if ($input === '') {
return;
}
$splits = preg_split('/\b(OR)\b/i', $input, -1, PREG_SPLIT_DELIM_CAPTURE) ?: [];