Icy Phoenix

     
 

CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username

CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username

Article
Reply with quote    Download Post  
Post CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username 
 
OPEN includes/functions_validate.php

FIND
Code: [Download] [Hide]
  1.     if ( !preg_match("/^[a-z0-9&-_ ]+$/i", $username) ) 


REPLACE WITH
Quote:
    if ( !preg_match("/^[a-z0-9&-_ Add here your new permitted charachters]+$/i", $username) )


OPEN language/lang_english/lang_main.php

FIND
Code: [Download] [Hide]
  1. $lang['Forbidden_characters'] = 'Allowed characters for usernames are a-z, 0-9, -, _ and spaces.'; 


REPLACE WITH
Quote:
$lang['Forbidden_characters'] = 'Allowed characters for usernames are a-z, 0-9, -, _ Add here your new permitted charachters and spaces.';


Remember that you should not allow other chars, because you may be exposed to security issue... do it at your own risk.



 
Zuker - View user's profile Send private message  
Zuker [ Thu 05 Apr, 2007 16:21 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username

Comments
Reply with quote    Download Post  
Post Re: Removing The Restriction Of Using Some Characters On Nicks 
 
I am unable to add a single quote ' to the allowed list of the usernames. I am not sure how much of a security problem this would be but is there a way around this.

Version of Icy Phoenix:      1.2.0.27c      
Version of phpBB:      2.0.23
Version of PHP:     5.2.0-8+etch13     
Version of MySQL:     5.0.32-Debian_7etch6-log
Board started:     2008/10/03 - 09:13     
Avatar directory size:     29.16 KB
Size of the database:     2.80 MB     
Gzip compression:     ON


THANKS



 
Jdaw - View user's profile Send private message  
Jdaw [ Tue 30 Dec, 2008 01:29 ]
Reply with quote    Download Post  
Post Re: Removing The Restriction Of Using Some Characters On Nicks 
 
too long because you've to replace ' by ' everywhere



 
Informpro - View user's profile Send private message  
Informpro [ Tue 30 Dec, 2008 11:53 ]
Reply with quote    Download Post  
Post Re: CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username 
 
Is this correct
 'Forbidden_characters' => 'Allowed characters for usernames are a-z, 0-9, -, _ а-я and spaces.',
or this ?
 'Forbidden_characters' => 'Allowed characters for usernames are a-z, 0-9, -, _ а-я, and spaces.',
I tried first one, but nothing work  
I did everything, also with lang russian/ lang main.php but it's not working
Quote:
тест : this username is not available




 
Ripley - View user's profile Send private message  
Ripley [ Sat 06 Mar, 2010 23:35 ]
Reply with quote    Download Post  
Post Re: CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username 
 
Unfortunately current Icy Phoenix doesn't fully support UTF-8 and special chars.

I'm working hard to the project to enhance and fix this aspect, so you should wait the next version to have a new try with special chars usernames.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Sun 14 Mar, 2010 09:59 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1