#19481 [Com]: DB doesn't allow for '@' within password (p@ssword)
| From: | alan at akbkhome dot com | Date: | Thu, 03 Oct 2002 00:02:00 +0000 |
| Subject: | #19481 [Com]: DB doesn't allow for '@' within password (p@ssword) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9801@lists.php.net to get a copy of this message | ||
ID: 19481
Comment by: alan@akbkhome.com
Reported By: rob@euglug.org
Status: Feedback
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.2.3
New Comment:
you can rawurlencode the @ sign %40
username = xxx
password = yy@yy
dns = mysql://xxx:yy%40yy@localhost/mydb
If the dsn is to follow 'http url standards' (eg. the rfc), then there
is no need to change the code.. (just need to document it somewhere)
Previous Comments:
------------------------------------------------------------------------
[2002-10-02 04:37:04] mj@php.net
Please provide us your patch and we'll see.
------------------------------------------------------------------------
[2002-09-18 15:04:58] rob@euglug.org
If you have an '@' in your password, DB.php parses that as the token
that separates the user:pass@host of the DSN. It should preferrably
allow passwords with '@'.
I can send a patch, but what is the preferred way of handling something
like this? Asking the user to put the pass in quotes? Or somehow
determining what is the separator token and what is the password?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19481&edit=1