mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:50:11 +00:00
possible sql injection in search
This commit is contained in:
parent
21d79e787e
commit
514c994e6a
2 changed files with 3 additions and 3 deletions
|
@ -995,8 +995,8 @@
|
|||
else
|
||||
$sql_extra .= sprintf(" AND `item`.`parent` IN (SELECT distinct(`parent`) from item where ( `author-link` like '%s' or `tag` like '%s' or tag like '%s' )) ",
|
||||
dbesc(protect_sprintf('%' . $myurl)),
|
||||
dbesc(protect_sprintf('%' . $myurl . '\\]%')),
|
||||
dbesc(protect_sprintf('%' . $diasp_url . '\\]%'))
|
||||
dbesc(protect_sprintf('%' . $myurl . ']%')),
|
||||
dbesc(protect_sprintf('%' . $diasp_url . ']%'))
|
||||
);
|
||||
|
||||
if ($max_id > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue