Changeset 1895

Show
Ignore:
Timestamp:
01/31/2008 06:35:42 PM (11 months ago)
Author:
Shadowhand
Message:

Instead of unsetting the database password, clear the entire connection array.

Location:
trunk/system/libraries
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Database.php

    r1894 r1895  
    197197                                throw new Kohana_Database_Exception('database.connection', $this->driver->show_error()); 
    198198 
    199                         // Clear password after successful connect 
    200                         $this->config['connection']['pass'] = NULL; 
     199                        // Clear connection after successful connect 
     200                        $this->config['connection'] = NULL; 
    201201                } 
    202202        } 
  • trunk/system/libraries/drivers/Database/Mysql.php

    r1881 r1895  
    7070                        } 
    7171 
    72                         // Clear password after successful connect 
    73                         $this->db_config['connection']['pass'] = NULL; 
     72                        // Clear connection after successful connect 
     73                        $this->db_config['connection'] = NULL; 
    7474 
    7575                        return $this->link; 
  • trunk/system/libraries/drivers/Database/Mysqli.php

    r1881 r1895  
    5858                        } 
    5959 
    60                         // Clear password after successful connect 
    61                         $this->db_config['connection']['pass'] = NULL; 
     60                        // Clear connection after successful connect 
     61                        $this->db_config['connection'] = NULL; 
    6262 
    6363                        return $this->link; 
  • trunk/system/libraries/drivers/Database/Pdosqlite.php

    r1841 r1895  
    5656                } 
    5757 
     58                // Clear connection after successful connect 
     59                $this->db_config['connection'] = NULL; 
     60 
    5861                return $this->link; 
    5962        } 
  • trunk/system/libraries/drivers/Database/Pgsql.php

    r1881 r1895  
    5454                        } 
    5555 
    56                         // Clear password after successful connect 
    57                         $this->db_config['connection']['pass'] = NULL; 
     56                        // Clear connection after successful connect 
     57                        $this->db_config['connection'] = NULL; 
    5858 
    5959                        return $this->link;