Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
mds
Client



Joined: Dec 24, 2004
Posts: 194
Location: Michigan

PostPosted: Sun Apr 09, 2006 9:11 pm Reply with quote

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 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Apr 09, 2006 10:03 pm Reply with quote

What is his username? Does it uses anything other than alphanumeric characters?

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
mds







PostPosted: Sun Apr 09, 2006 10:30 pm Reply with quote

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

PostPosted: Mon Apr 10, 2006 5:38 am Reply with quote

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.
 
View user's profile Send private message
evaders99







PostPosted: Mon Apr 10, 2006 7:32 am Reply with quote

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







PostPosted: Mon Apr 10, 2006 7:38 pm Reply with quote

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
Regular



Joined: Feb 16, 2004
Posts: 69

PostPosted: Mon May 22, 2006 11:14 am Reply with quote

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
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6433

PostPosted: Mon May 22, 2006 7:51 pm Reply with quote

Thanks for following up on this.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
khemraj1999
New Member
New Member



Joined: May 23, 2006
Posts: 1

PostPosted: Tue May 23, 2006 5:29 am Reply with quote

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?
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©