mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 10:14:33 -04:00
SQL : permet recherche du caractère dièse
This commit is contained in:
1 parent
a1f8bade61
commit
ba71d7747a
1 file changed
+3
-5
@@ -318,11 +318,9 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
|
||||
foreach ($terms as $word) {
|
||||
$word = trim($word);
|
||||
if (strlen($word) > 0) {
|
||||
if ($word[0] === '#') {
|
||||
if (isset($word[1])) {
|
||||
$search .= 'AND e1.tags LIKE ? ';
|
||||
$values[] = '%' . $word .'%';
|
||||
}
|
||||
if ($word[0] === '#' && isset($word[1])) {
|
||||
$search .= 'AND e1.tags LIKE ? ';
|
||||
$values[] = '%' . $word .'%';
|
||||
} else {
|
||||
$search .= 'AND CONCAT(e1.title, UNCOMPRESS(e1.content_bin)) LIKE ? ';
|
||||
$values[] = '%' . $word .'%';
|
||||
|
||||
Reference in new issue
Block a user