cvs: pear /Auth/Container DB.php DBLite.php MDB.php MDB2.php

From: Date: Thu, 17 Aug 2006 01:03:52 +0000
Subject: cvs: pear /Auth/Container DB.php DBLite.php MDB.php MDB2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41640@lists.php.net to get a copy of this message
aashley Thu Aug 17 01:03:52 2006 UTC Modified files: /pear/Auth/Container DB.php DBLite.php MDB.php MDB2.php Log: Fix quoting function so it works with blank db_fields value http://cvs.php.net/viewvc.cgi/pear/Auth/Container/DB.php?r1=1.62&r2=1.63&diff_format=u Index: pear/Auth/Container/DB.php diff -u pear/Auth/Container/DB.php:1.62 pear/Auth/Container/DB.php:1.63 --- pear/Auth/Container/DB.php:1.62 Fri Aug 11 01:14:43 2006 +++ pear/Auth/Container/DB.php Thu Aug 17 01:03:52 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.62 2006/08/11 01:14:43 aashley Exp $ + * @version CVS: $Id: DB.php,v 1.63 2006/08/17 01:03:52 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.62 $ + * @version Release: @package_version@ File: $Revision: 1.63 $ * @link http://pear.php.net/package/Auth */ class Auth_Container_DB extends Auth_Container @@ -236,7 +236,9 @@ } return implode(', ', $fields); } else { - return $this->db->quoteIdentifier($this->options['db_fields']); + if (strlen($this->options['db_fields']) > 0) { + return $this->db->quoteIdentifier($this->options['db_fields']); + } } } http://cvs.php.net/viewvc.cgi/pear/Auth/Container/DBLite.php?r1=1.8&r2=1.9&diff_format=u Index: pear/Auth/Container/DBLite.php diff -u pear/Auth/Container/DBLite.php:1.8 pear/Auth/Container/DBLite.php:1.9 --- pear/Auth/Container/DBLite.php:1.8 Fri Aug 11 01:14:43 2006 +++ pear/Auth/Container/DBLite.php Thu Aug 17 01:03:52 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: DBLite.php,v 1.8 2006/08/11 01:14:43 aashley Exp $ + * @version CVS: $Id: DBLite.php,v 1.9 2006/08/17 01:03:52 aashley Exp $ * @link http://pear.php.net/package/Auth * @since File available since Release 1.3.0 */ @@ -45,7 +45,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.8 $ + * @version Release: @package_version@ File: $Revision: 1.9 $ * @link http://pear.php.net/package/Auth * @since Class available since Release 1.3.0 */ @@ -192,7 +192,9 @@ } return implode(', ', $fields); } else { - return $this->db->quoteIdentifier($this->options['db_fields']); + if (strlen($this->options['db_fields']) > 0) { + return $this->db->quoteIdentifier($this->options['db_fields']); + } } } http://cvs.php.net/viewvc.cgi/pear/Auth/Container/MDB.php?r1=1.26&r2=1.27&diff_format=u Index: pear/Auth/Container/MDB.php diff -u pear/Auth/Container/MDB.php:1.26 pear/Auth/Container/MDB.php:1.27 --- pear/Auth/Container/MDB.php:1.26 Fri Aug 11 01:14:43 2006 +++ pear/Auth/Container/MDB.php Thu Aug 17 01:03:52 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.26 2006/08/11 01:14:43 aashley Exp $ + * @version CVS: $Id: MDB.php,v 1.27 2006/08/17 01:03:52 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.26 $ + * @version Release: @package_version@ File: $Revision: 1.27 $ * @link http://pear.php.net/package/Auth * @since Class available since Release 1.2.3 */ @@ -233,7 +233,9 @@ } return implode(', ', $fields); } else { - return $this->db->quoteIdentifier($this->options['db_fields']); + if (strlen($this->options['db_fields']) > 0) { + return $this->db->quoteIdentifier($this->options['db_fields']); + } } } http://cvs.php.net/viewvc.cgi/pear/Auth/Container/MDB2.php?r1=1.12&r2=1.13&diff_format=u Index: pear/Auth/Container/MDB2.php diff -u pear/Auth/Container/MDB2.php:1.12 pear/Auth/Container/MDB2.php:1.13 --- pear/Auth/Container/MDB2.php:1.12 Fri Aug 11 01:14:43 2006 +++ pear/Auth/Container/MDB2.php Thu Aug 17 01:03:52 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.12 2006/08/11 01:14:43 aashley Exp $ + * @version CVS: $Id: MDB2.php,v 1.13 2006/08/17 01:03:52 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.12 $ + * @version Release: @package_version@ File: $Revision: 1.13 $ * @link http://pear.php.net/package/Auth * @since Class available since Release 1.3.0 */ @@ -233,7 +233,9 @@ } return implode(', ', $fields); } else { - return $this->db->quoteIdentifier($this->options['db_fields']); + if (strlen($this->options['db_fields']) > 0) { + return $this->db->quoteIdentifier($this->options['db_fields']); + } } }

« previous php.pear.cvs (#41640) next »