ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Ignore:
Timestamp:
May 5, 2008, 4:29:00 PM (14 years ago)
Author:
ogawa
Message:

Authライブラリのバージョンを1.6.1にアップデート

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ogawa/renew_OpenPNE_Auth/lib/include/Auth/Container/DBLite.php

    r4883 r6962  
    1919 * @copyright  2001-2006 The PHP Group
    2020 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
    21  * @version    CVS: $Id: DBLite.php,v 1.18 2007/06/12 03:11:26 aashley Exp $
     21 * @version    CVS: $Id: DBLite.php,v 1.20 2008/04/04 07:57:02 aashley Exp $
    2222 * @link       http://pear.php.net/package/Auth
    2323 * @since      File available since Release 1.3.0
     
    4646 * @copyright  2001-2006 The PHP Group
    4747 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
    48  * @version    Release: 1.5.4  File: $Revision: 1.18 $
     48 * @version    Release: 1.6.1  File: $Revision: 1.20 $
    4949 * @link       http://pear.php.net/package/Auth
    5050 * @since      Class available since Release 1.3.0
     
    156156        }
    157157        if ($this->options['auto_quote'] && $this->db->dsn['phptype'] != 'sqlite') {
    158             $this->options['final_table'] = $this->db->quoteIdentifier($this->options['table']);
     158            if (strpos('.', $this->options['table']) === false) {
     159                $this->options['final_table'] = $this->db->quoteIdentifier($this->options['table']);
     160            } else {
     161                $t = explode('.', $this->options['table']);
     162                for ($i = 0, $count = count($t); $i < $count; $i++)
     163                    $t[$i] = $this->db->quoteIdentifier($t[$i]);
     164                $this->options['final_table'] = implode('.', $t);
     165            }
    159166            $this->options['final_usernamecol'] = $this->db->quoteIdentifier($this->options['usernamecol']);
    160167            $this->options['final_passwordcol'] = $this->db->quoteIdentifier($this->options['passwordcol']);
Note: See TracChangeset for help on using the changeset viewer.