[pLog-general] Username Validator

Oscar Renalias oscar at renalias.net
Sun Sep 25 10:57:06 GMT 2005


Yes, that's the only place where it should be changed as far as I can  
tell.

It could also be that your regexp is not correct, did you check that?  
I am not too good at crafting regexps so I cannot help you there...

Oscar

On 25 Sep 2005, at 10:45, Zaid B. Amireh wrote:

> Hi all,
>
> I need to loosen up the username validation regular expression  
> since we already have usernames on other systems, the regex is in  
> class/data/validator/usernamevalidator.class.php
>
> define( "ONLY_ALPHANUMERIC_REGEXP", "^([A-Za-z0-9]*)$" );
>
> I need to change it to
>
> define( "ONLY_ALPHANUMERIC_REGEXP", "^([A-Za-z0-9]+[A-Za-z0-9._-]* 
> [A-Za-z0-9]+)$" );
>
> is that the only place I should change it in? because that didn't  
> work.
> Would such a change break anything? Would it open the way for some  
> security issues? what comes to mind is the username 'admin.php' for  
> an example.
>
> with regards
>
> Zaid Amireh
> _______________________________________________
> pLog-general mailing list
> pLog-general at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-general
>
>




More information about the pLog-general mailing list