mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
protect_sprintf calls
implement protectSprintf function
This commit is contained in:
parent
46d7767fd0
commit
0efcbe5d15
5 changed files with 10 additions and 10 deletions
|
@ -241,7 +241,7 @@ class DFRN
|
|||
if (isset($category)) {
|
||||
$sql_post_table = sprintf(
|
||||
"INNER JOIN (SELECT `oid` FROM `term` WHERE `term` = '%s' AND `otype` = %d AND `type` = %d AND `uid` = %d ORDER BY `tid` DESC) AS `term` ON `item`.`id` = `term`.`oid` ",
|
||||
DBA::escape(protect_sprintf($category)),
|
||||
DBA::escape(Strings::protectSprintf($category)),
|
||||
intval(TERM_OBJ_POST),
|
||||
intval(TERM_CATEGORY),
|
||||
intval($owner_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue