cvs: pear /Perm_LiveUser/Auth/Container DB.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Thu, 09 Sep 2004 14:20:50 +0000 |
| Subject: | cvs: pear /Perm_LiveUser/Auth/Container DB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-23754@lists.php.net to get a copy of this message | ||
dufuz Thu Sep 9 10:20:50 2004 EDT
Modified files:
/pear/Perm_LiveUser/Auth/Container DB.php
Log:
password and handle lacked ['name']
http://cvs.php.net/diff.php/pear/Perm_LiveUser/Auth/Container/DB.php?r1=1.62&r2=1.63&ty=u
Index: pear/Perm_LiveUser/Auth/Container/DB.php
diff -u pear/Perm_LiveUser/Auth/Container/DB.php:1.62 pear/Perm_LiveUser/Auth/Container/DB.php:1.63
--- pear/Perm_LiveUser/Auth/Container/DB.php:1.62 Sat Aug 28 11:57:43 2004
+++ pear/Perm_LiveUser/Auth/Container/DB.php Thu Sep 9 10:20:50 2004
@@ -44,7 +44,7 @@
* 'allowDuplicateHandles' => 1);
*
* @author Markus Wolff <wolff@21st.de>
- * @version $Id: DB.php,v 1.62 2004/08/28 15:57:43 lsmith Exp $
+ * @version $Id: DB.php,v 1.63 2004/09/09 14:20:50 dufuz Exp $
* @package LiveUser
* @category authentication
*/
@@ -252,12 +252,12 @@
// Setting the default sql query.
$sql = 'SELECT ' . implode(',', $fields) . '
FROM ' . $this->authTable.'
- WHERE ' .
$this->authTableCols['required']['handle'] . '=' .
$this->dbc->quoteSmart($handle);
+ WHERE ' .
$this->authTableCols['required']['handle']['name'] . '='
. $this->dbc->quoteSmart($handle);
if ($passwd !== false) {
// If $passwd is set, try to find the first user with the given
// handle and password.
- $sql .= 'AND ' .
$this->authTableCols['required']['passwd'] . '=' .
$this->dbc->quoteSmart($this->encryptPW($passwd));
+ $sql .= 'AND ' .
$this->authTableCols['required']['passwd']['name'] . '='
. $this->dbc->quoteSmart($this->encryptPW($passwd));
}
// Query database