Page Index Toggle Pages: 1
Topic Tools
Normal Topic Banned username also bans partial match usernames? (Read 2,219 times)
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Banned username also bans partial match usernames?
Reply #2 - Jan 1st, 2010 at 1:50pm
Post Tools
@ Carsten

New
Security.pl
in CVS.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Carsten
Ex Member


Re: Banned username also bans partial match usernames?
Reply #1 - Nov 29th, 2009 at 4:29pm
Post Tools
I agree - this should be considered a bug.

The fix:

In Security.pl sub routine 'banning'
Code
Select All
			&write_banlog("$_ ($user_ip)") if $ban_user =~ /$_/i; 


should be
Code
Select All
			&write_banlog("$_ ($user_ip)") if $ban_user =~ m/^$_$/; 

« Last Edit: Nov 29th, 2009 at 4:30pm by »  
Back to top
 
IP Logged
 
Jennie123
Full Member
***
Offline



Posts: 307
Location: My Location
Banned username also bans partial match usernames?
Nov 29th, 2009 at 1:10am
Post Tools
I hesitate to log this as a bug, because it seems to upset people when bugs are logged, so I'm posting here.  Here's the issue:

I have 2.4, no mods.

When I ban a username, it ends up banning other members that the username partially matches too.  Here's an example:

I banned the username mattm, but it also banned username mattmaddog as well.  Note that "mattm" is part of mattmaddog.  As soon as I unbanned mattm, mattmaddog was able to login.

This sounds like a bug to me.  But maybe it's already been addressed and there's a workaround.  I tried to search for one to no avail.

Thoughts? Is there a fix for this?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top