From: Michael J. Rubinsky Date: Wed, 3 Nov 2010 05:23:14 +0000 (-0400) Subject: umask will be set anytime there is an explicit sql config other than horde's base... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=47aa45dda962ef1762f1b9cf733d76e2ae92a1bf;p=horde.git umask will be set anytime there is an explicit sql config other than horde's base config --- 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) {