Fixing First and Last name entry on account creation
Signed-off-by: Eric Poirier <eric@eclipse.org>
diff --git a/eclipse.org-common/classes/users/siteLogin.class.php b/eclipse.org-common/classes/users/siteLogin.class.php
index 0871411..4f0a99a 100644
--- a/eclipse.org-common/classes/users/siteLogin.class.php
+++ b/eclipse.org-common/classes/users/siteLogin.class.php
@@ -562,7 +562,6 @@
if (empty($this->messages['create']['danger'])) {
# Add request to database
$this->t = $this->App->getAlphaCode(64);
- mysql_set_charset('utf8');
$this->App->eclipse_sql("INSERT INTO account_requests VALUES (" . $this->App->returnQuotedString($this->App->sqlSanitize(trim($this->username))) . ",
'',
" . $this->App->returnQuotedString($this->App->sqlSanitize(trim($this->fname))) . ",
@@ -1224,7 +1223,7 @@
}
if ($field == 'fname' || $field == 'lname') {
- $this->$field = preg_replace(SITELOGIN_NAME_REGEXP, '', $this->$field);
+ $this->$field = preg_replace($this->xss_patterns, '', $this->$field);
}
else if ($field == 't') {
$this->$field = preg_replace("/[^a-zA-Z0-9]/", "", $this->t);