Skip to content

Commit 1f0fdbe

Browse files
smzinfograf768
authored andcommitted
# [#30586] Usernames that should not be accepted can be actualy
registered. Thanks Sergio Manzi (Fix #1787)
1 parent f3043d6 commit 1f0fdbe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

installation/CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $ -> Language fix or change
2727

2828
07-Oct-2013 Jean-Marie Simonet
2929
# [#32199] *Allow username edit in profile edit when username is not compliant. Thanks Achal Aggarwal
30+
# [#30586] Usernames that should not be accepted can be actualy registered. Thanks Sergio Manzi
3031

3132
07-Oct-2013 Roberto Segura
3233
# 06-Oct-2013 Fix broken install after [#31602]. Thanks Michael Babker

libraries/joomla/table/user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function check()
186186
return false;
187187
}
188188

189-
if (preg_match("#[<>\"'%;()&]#i", $this->username) || strlen(utf8_decode($this->username)) < 2)
189+
if (preg_match('#[<>"\'%;()&\\s\\\\]|\\.\\./#', $this->username) || strlen(utf8_decode($this->username)) < 2)
190190
{
191191
$this->setError(JText::sprintf('JLIB_DATABASE_ERROR_VALID_AZ09', 2));
192192

0 commit comments

Comments
 (0)