mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Issue 11891: Enable search for user@domain.tld
This commit is contained in:
parent
38cf0666bd
commit
4b8c631216
2 changed files with 6 additions and 4 deletions
|
@ -246,8 +246,10 @@ class Contact extends BaseModule
|
|||
if ($search) {
|
||||
$searching = true;
|
||||
$search_hdr = $search;
|
||||
$search_txt = preg_quote($search);
|
||||
$sql_extra .= " AND (name REGEXP ? OR url REGEXP ? OR nick REGEXP ?)";
|
||||
$search_txt = preg_quote(trim($search, ' @!'));
|
||||
$sql_extra .= " AND (`name` REGEXP ? OR `url` REGEXP ? OR `nick` REGEXP ? OR `addr` REGEXP ? OR `alias` REGEXP ?)";
|
||||
$sql_values[] = $search_txt;
|
||||
$sql_values[] = $search_txt;
|
||||
$sql_values[] = $search_txt;
|
||||
$sql_values[] = $search_txt;
|
||||
$sql_values[] = $search_txt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue