[TYPO3-dev] fetchUserRecord() - no white space trimming?

Kay Strobach typo3 at kay-strobach.de
Wed Oct 16 11:00:14 CEST 2013


Hi Robert,

Because you can have whitepaced usernames ...

Regards
Kay

Am 15.10.13 07:31, schrieb Robert Wildling:
> Hi,
> 
> If i understood correctly, fetchUserRecord() is (also) used for backend
> authentification.
> 
> Today I realized that I had entered a username that got prependend with
> a white space.
> 
> After looking through the user-auth-file in t3lib (TYPO3 4.5, TYPO3
> 4.7), I did find various functions, also the fullQuoteStr-function,
> which uses a mysql_real_escape_string, but nowhere is anything that
> handles trimming (trim?).
> 
> My question: what do I oversee? Or - if I do not oversee anything - why
> is a username not trimmed for white space?
> 
> Thanks!
> Best regards,
> Robert


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful - feel free to donate:
  -
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
  - https://flattr.com/profile/kaystrobach




More information about the TYPO3-dev mailing list