Skip to content

Commit

Permalink
Fix Numeric usernames can start with a space issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuan Pham Ngoc committed Oct 8, 2014
1 parent c987b7e commit 4b7e560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/table/user.php
Expand Up @@ -187,7 +187,7 @@ public function check()
}

if (preg_match('#[<>"\'%;()&\\\\]|\\.\\./#', $this->username) || strlen(utf8_decode($this->username)) < 2
|| trim($this->username) != $this->username)
|| trim($this->username) !== $this->username)
{
$this->setError(JText::sprintf('JLIB_DATABASE_ERROR_VALID_AZ09', 2));

Expand Down

0 comments on commit 4b7e560

Please sign in to comment.