Author |
Message |
mds
Client
Joined: Dec 24, 2004
Posts: 194
Location: Michigan
|
Posted:
Sun Apr 09, 2006 9:11 pm |
|
7.6 patched 3.2 sentinal 2.4.2pl5 and forums updated to .20
last week i did the updates to the patched 3.2 and sentinal 2.4.2pl5 and a user notified me he's getting "Illegal username" upon login...never had this before this is the first time...i searched here and didnt really come up with anything that looked similar to this....look like maybe connected to something in the Your_Account module ? |
Last edited by mds on Mon Apr 10, 2006 8:44 pm; edited 1 time in total |
|
|
|
evaders99
Former Moderator in Good Standing
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sun Apr 09, 2006 10:03 pm |
|
|
|
|
mds
|
Posted:
Sun Apr 09, 2006 10:30 pm |
|
no its all letters but does contain a space....i found this and applied with no luck of correcting the issue
[ Only registered users can see links on this board! Get registered or login! ] |
|
|
|
|
Susann
Moderator
Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Mon Apr 10, 2006 5:38 am |
|
About spaces in names see also:
[ Only registered users can see links on this board! Get registered or login! ]
Other illegal usernames like t.i.m.o.n arenĀ“t allowed this depends on the nuke and patch version. |
|
|
|
|
evaders99
|
Posted:
Mon Apr 10, 2006 7:32 am |
|
Patched 3.2 adds a third check to the username
Code:
if (isset($username) && (ereg("[^a-zA-Z0-9_-]",$username))) {
|
Changing the ereg to allow a space should fix it |
|
|
|
|
mds
|
Posted:
Mon Apr 10, 2006 7:38 pm |
|
yup that seems to have done it THANKS a Bunch
just for clarification for the next person that looks for this issue :
/modules/Your_Account/index.php
around line # 25 find the above code
and heres what mine looks like after editing
if (isset($username) && (ereg("[^a-zA-Z0-9_- -]",$username))) { |
|
|
|
|
dssripper
Regular
Joined: Feb 16, 2004
Posts: 69
|
Posted:
Mon May 22, 2006 11:14 am |
|
I had the same problem...
I changed the code in Your_Account
to if (isset($username) && (ereg("[^a-zA-Z0-9_- -]",$username))) {
it will now allow them to log in but I get an error
at the top of the page.
Warning: ereg(): REG_ERANGE in /var/www/html/modules/Your_Account/index.php on line 24 |
|
|
|
|
kguske
Site Admin
Joined: Jun 04, 2004
Posts: 6433
|
Posted:
Mon May 22, 2006 7:51 pm |
|
|
|
|
khemraj1999
New Member
Joined: May 23, 2006
Posts: 1
|
Posted:
Tue May 23, 2006 5:29 am |
|
i also had the same problem. Mine is fixed..users can register with tags. But when i try to edit a user to add tags in forum admin i get this :
Sorry, but this username contains an invalid character such as
Is there something extra i need to do to edit/add tags..instead of editing sql tables? |
|
|
|
|
|