diff --git a/classes/User.php b/classes/User.php index cd99a3dd4f..e8aaaf6a10 100644 --- a/classes/User.php +++ b/classes/User.php @@ -758,7 +758,7 @@ class User extends Managed_DataObject $profile = new Profile(); - $profile->query(sprintf($qry, $this->id, $tag)); + $profile->query(sprintf($qry, $this->id, $profile->escape($tag))); return $profile; }