PEAR::Auth with fixed length column in Postgres = unexpected result
| From: | Jeroen Houben | Date: | Fri, 05 Dec 2003 12:59:21 +0000 |
| Subject: | PEAR::Auth with fixed length column in Postgres = unexpected result | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-24195@lists.php.net to get a copy of this message | ||
Hi,
If you use a Postgresql char(x) column with PEAR::Auth (grabbed my version from CVS) , the verifypassword method won't retun the expected result.
I already addressed this problem a long time ago (see: http://marc.theaimsgroup.com/?l=pear-dev&m=105006868527734&w=2 ) and it was fixed by adding the trim() function around the passwords. Now I saw that only \r\n are trimmed, strings rigth-padded with spaces aren't trimmed anymore. Why was this done?
TIA
Jeroen