CUSTOMIZATION - Removing Restrictions On Using Some Special Characters In Username


Subject: 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.

Subject: 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

Profile PM  
Subject: Re: Removing The Restriction Of Using Some Characters On Nicks
too long because you've to replace ' by ' everywhere

Profile PM  
Subject: 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

Subject: 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.


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.9228s (PHP: 2% SQL: 98%)
SQL queries: 16 - Debug Off - GZIP Enabled