forked from GNUsocial/gnu-social
Escape argument to User::getTaggedSubscribers() to preven SQL injection
This change escapes the argument to User::getTaggedSubscribers() to prevent SQL injection attacks. Both code paths up the stack fail to escape this parameter, so this is a potential SQL injection attack.
This commit is contained in:
parent
e54cb6958a
commit
4a30da924a
@ -736,7 +736,7 @@ class User extends Managed_DataObject
|
||||
|
||||
$profile = new Profile();
|
||||
|
||||
$cnt = $profile->query(sprintf($qry, $this->id, $tag));
|
||||
$cnt = $profile->query(sprintf($qry, $this->id, $profile->escape($tag)));
|
||||
|
||||
return $profile;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user