[pLog-general] Username Validator

Zaid B. Amireh zamireh at albawaba.com
Sun Sep 25 11:22:49 GMT 2005


Oscar Renalias wrote:

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

thanks.

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

Well, the regexp is valid and it has been working all along, its just 
that I got my logic inverted today, I was feeding the validator 
non-matching entries and expecting them to match, I need to get some 
rest. :)

thanks again

with regards

Zaid Amireh

>
> 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
>>
>>
>
> _______________________________________________
> 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