#19481 [Fbk->Ana]: DB doesn't allow for '@' within password (p@ssword)

From: Date: Mon, 21 Oct 2002 04:26:51 +0000
Subject: #19481 [Fbk->Ana]: DB doesn't allow for '@' within password (p@ssword)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10162@lists.php.net to get a copy of this message
ID: 19481 Updated by: sniper@php.net Reported By: rob@euglug.org -Status: Feedback +Status: Analyzed Bug Type: PEAR related Operating System: Linux PHP Version: 4.2.3 Previous Comments: ------------------------------------------------------------------------ [2002-10-02 19:02:00] alan@akbkhome.com 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) ------------------------------------------------------------------------ [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

« previous php.pear.dev (#10162) next »