From bba9ccce9a9462b46b7748a1e4f91a23df7152b8 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Fri, 1 Aug 2014 20:30:12 +0000
Subject: [PATCH] Decode html entities after sanitization

---
 include/class.user.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.user.php b/include/class.user.php
index 127de6c87..3ee809b84 100644
--- a/include/class.user.php
+++ b/include/class.user.php
@@ -157,7 +157,7 @@ class User extends UserModel {
                 list($name) = explode('@', $vars['email'], 2);
 
             $user = User::create(array(
-                'name' => Format::sanitize($name, false),
+                'name' => Format::htmldecode(Format::sanitize($name, false)),
                 'created' => new SqlFunction('NOW'),
                 'updated' => new SqlFunction('NOW'),
                 //XXX: Do plain create once the cause
-- 
GitLab