aboutsummaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/app/Models/SearchTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php
index 0b832737a..afec683d5 100644
--- a/tests/app/Models/SearchTest.php
+++ b/tests/app/Models/SearchTest.php
@@ -330,8 +330,8 @@ class SearchTest extends PHPUnit\Framework\TestCase {
[
'intitle:"\\(test\\)"',
'(e.title LIKE ? )',
- ['%\\(test\\)%'],
- ]
+ ['%(test)%'],
+ ],
];
}
}