cvs: pear /Auth/Container DB.php MDB.php MDB2.php
| From: | Adam Ashley | Date: | Thu, 31 Aug 2006 01:25:08 +0000 |
| Subject: | cvs: pear /Auth/Container DB.php MDB.php MDB2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41937@lists.php.net to get a copy of this message | ||
aashley Thu Aug 31 01:25:08 2006 UTC
Modified files:
/pear/Auth/Container DB.php MDB.php MDB2.php
Log:
Apply fix for #8524 to other DB containers that exihibit same problem
http://cvs.php.net/viewvc.cgi/pear/Auth/Container/DB.php?r1=1.63&r2=1.64&diff_format=u
Index: pear/Auth/Container/DB.php
diff -u pear/Auth/Container/DB.php:1.63 pear/Auth/Container/DB.php:1.64
--- pear/Auth/Container/DB.php:1.63 Thu Aug 17 01:03:52 2006
+++ pear/Auth/Container/DB.php Thu Aug 31 01:25:08 2006
@@ -18,7 +18,7 @@
* @author Adam Ashley <aashley@php.net>
* @copyright 2001-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version CVS: $Id: DB.php,v 1.63 2006/08/17 01:03:52 aashley Exp $
+ * @version CVS: $Id: DB.php,v 1.64 2006/08/31 01:25:08 aashley Exp $
* @link http://pear.php.net/package/Auth
*/
@@ -43,7 +43,7 @@
* @author Adam Ashley <aashley@php.net>
* @copyright 2001-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version Release: @package_version@ File: $Revision: 1.63 $
+ * @version Release: @package_version@ File: $Revision: 1.64 $
* @link http://pear.php.net/package/Auth
*/
class Auth_Container_DB extends Auth_Container
@@ -273,7 +273,8 @@
}
// Find if db_fields contains a *, if so assume all columns are selected
- if (strstr($this->options['db_fields'], '*')) {
+ if (is_string($this->options['db_fields'])
+ && strstr($this->options['db_fields'], '*')) {
$sql_from = "*";
} else {
$sql_from =
$this->db->quoteIdentifier($this->options['usernamecol']).
http://cvs.php.net/viewvc.cgi/pear/Auth/Container/MDB.php?r1=1.27&r2=1.28&diff_format=u
Index: pear/Auth/Container/MDB.php
diff -u pear/Auth/Container/MDB.php:1.27 pear/Auth/Container/MDB.php:1.28
--- pear/Auth/Container/MDB.php:1.27 Thu Aug 17 01:03:52 2006
+++ pear/Auth/Container/MDB.php Thu Aug 31 01:25:08 2006
@@ -18,7 +18,7 @@
* @author Adam Ashley <aashley@php.net>
* @copyright 2001-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version CVS: $Id: MDB.php,v 1.27 2006/08/17 01:03:52 aashley Exp $
+ * @version CVS: $Id: MDB.php,v 1.28 2006/08/31 01:25:08 aashley Exp $
* @link http://pear.php.net/package/Auth
* @since File available since Release 1.2.3
*/
@@ -44,7 +44,7 @@
* @author Adam Ashley <aashley@php.net>
* @copyright 2001-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version Release: @package_version@ File: $Revision: 1.27 $
+ * @version Release: @package_version@ File: $Revision: 1.28 $
* @link http://pear.php.net/package/Auth
* @since Class available since Release 1.2.3
*/
@@ -270,7 +270,8 @@
}
//Check if db_fields contains a *, if so assume all columns are selected
- if (strstr($this->options['db_fields'], '*')) {
+ if (is_string($this->options['db_fields'])
+ && strstr($this->options['db_fields'], '*')) {
$sql_from = '*';
} else {
$sql_from =
$this->db->quoteIdentifier($this->options['usernamecol']).
http://cvs.php.net/viewvc.cgi/pear/Auth/Container/MDB2.php?r1=1.14&r2=1.15&diff_format=u
Index: pear/Auth/Container/MDB2.php
diff -u pear/Auth/Container/MDB2.php:1.14 pear/Auth/Container/MDB2.php:1.15
--- pear/Auth/Container/MDB2.php:1.14 Mon Aug 21 02:18:48 2006
+++ pear/Auth/Container/MDB2.php Thu Aug 31 01:25:08 2006
@@ -18,7 +18,7 @@
* @author Adam Ashley <aashley@php.net>
* @copyright 2001-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version CVS: $Id: MDB2.php,v 1.14 2006/08/21 02:18:48 aashley Exp $
+ * @version CVS: $Id: MDB2.php,v 1.15 2006/08/31 01:25:08 aashley Exp $
* @link http://pear.php.net/package/Auth
* @since File available since Release 1.3.0
*/
@@ -44,7 +44,7 @@
* @author Adam Ashley <aashley@php.net>
* @copyright 2001-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
- * @version Release: @package_version@ File: $Revision: 1.14 $
+ * @version Release: @package_version@ File: $Revision: 1.15 $
* @link http://pear.php.net/package/Auth
* @since Class available since Release 1.3.0
*/
@@ -270,7 +270,8 @@
}
//Check if db_fields contains a *, if so assume all columns are selected
- if (strstr($this->options['db_fields'], '*')) {
+ if (is_string($this->options['db_fields'])
+ && strstr($this->options['db_fields'], '*')) {
$sql_from = '*';
} else {
$sql_from =
$this->db->quoteIdentifier($this->options['usernamecol'], true).