mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 23:26:41 +02:00
Bugtracker #5196 - send PM to user with apostrophe in display name
This commit is contained in:
@@ -515,8 +515,9 @@ class private_message
|
|||||||
*/
|
*/
|
||||||
function pm_getuid($var)
|
function pm_getuid($var)
|
||||||
{
|
{
|
||||||
$var = trim($var);
|
$var = strip_if_magic($var);
|
||||||
if($this->e107->sql->db_Select('user', 'user_id, user_name, user_class, user_email', "user_name LIKE '".$this->e107->sql -> escape(trim($var), TRUE)."'"))
|
$var = str_replace("'", ''', trim($var)); // Display name uses entities for apostrophe
|
||||||
|
if($this->e107->sql->db_Select('user', 'user_id, user_name, user_class, user_email', "user_name LIKE '".$this->e107->sql -> escape($var, FALSE)."'"))
|
||||||
{
|
{
|
||||||
$row = $this->e107->sql->db_Fetch();
|
$row = $this->e107->sql->db_Fetch();
|
||||||
return $row;
|
return $row;
|
||||||
|
Reference in New Issue
Block a user