From 47aa45dda962ef1762f1b9cf733d76e2ae92a1bf Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 3 Nov 2010 01:23:14 -0400 Subject: [PATCH] umask will be set anytime there is an explicit sql config other than horde's base config --- framework/Core/lib/Horde/Core/Factory/Db.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/Core/lib/Horde/Core/Factory/Db.php b/framework/Core/lib/Horde/Core/Factory/Db.php index 263639f79..9924590aa 100644 --- a/framework/Core/lib/Horde/Core/Factory/Db.php +++ b/framework/Core/lib/Horde/Core/Factory/Db.php @@ -86,8 +86,7 @@ class Horde_Core_Factory_Db } // Prevent DSN from getting polluted - if ($type == 'auth' && !empty($config['driver']) && - $config['driver'] == 'customsql') { + if (!is_array($type) && $type == 'auth') { unset($config['query_auth'], $config['query_add'], $config['query_getpw'], @@ -99,6 +98,8 @@ class Horde_Core_Factory_Db $config['encryption'], $config['show_encryption']); } + unset($config['umask']); + try { $this->_instances[$sig] = $this->_createDb($config); } catch (Horde_Exception $e) { -- 2.11.0