[TYPO3-dev] Install tool removes dots from admin usernames

Stefano Kowalke blueduck at gmx.net
Sat Jan 10 15:31:37 CET 2009


Stefano Kowalke wrote:

> Steffen Kamper wrote:
> 
>> $username =
>> ereg_replace('[^[:alnum:]_-]','',trim($this->INSTALL['database_adminUser'
> ['username']));
>> 
>> 
>> only chars beside numbers and letter-chars are '_-'
> 
> Thanks.
>  
>> When you make a patch, add the '.' to this pattern and change it to
>> preg_replace.
> 
> Maybe do two patches? One for the dot issue and one for change
> ereg_replace to preg_replace.
> 
> It seems it not easy changing. If i replace ereg_replace preg_replace i
> got an error:
> Warning: preg_replace() [function.preg-replace]: Compilation failed: POSIX
> named classes are supported only within a class at offset 1 on
> 
> Stefano
> 

If i change [^[:alnum:]._-] to [^A-Za-z0-9._-] it would work with
preg_replace.

It A-Za-z0-9 the same like [:alnum:]?

Stefano
-- 
Seit dem 1.1.2008 werden Daten zu jeder E-Mail verdachtsunabhängig gespeichert! 
Weitere Informationen: www.vorratsdatenspeicherung.de
GPG-ID: 0x2B08936D
Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D




More information about the TYPO3-dev mailing list