]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Profile.php
Escape $tag passed to Profile::getTaggedSubscribers()
[quix0rs-gnu-social.git] / classes / Profile.php
index cefcaf90b5b6a31823163bf27cfd50c8dd873ff6..540699eb3afdb692de6f1dfd5e3d5177061a8660 100644 (file)
@@ -682,7 +682,7 @@ class Profile extends Managed_DataObject
         $profile = new Profile();
         $tagged = array();
 
-        $cnt = $profile->query(sprintf($qry, $this->id, $this->id, $tag));
+        $cnt = $profile->query(sprintf($qry, $this->id, $this->id, $profile->escape($tag)));
 
         while ($profile->fetch()) {
             $tagged[] = clone($profile);