Fix sending secure cookies. use_ssl == 2 doesn't mean we are really using
authorJan Schneider <jan@horde.org>
Wed, 23 Jun 2010 16:17:18 +0000 (18:17 +0200)
committerJan Schneider <jan@horde.org>
Wed, 23 Jun 2010 16:17:55 +0000 (18:17 +0200)
SSL. Fixes bug #9039.

framework/Core/lib/Horde/Core/Binder/Secret.php

index 0892176..19e4e21 100644 (file)
@@ -13,7 +13,7 @@ class Horde_Core_Binder_Secret implements Horde_Injector_Binder
             'cookie_domain' => $conf['cookie']['domain'],
             'cookie_expire' => $conf['session']['timeout'],
             'cookie_path' => $conf['cookie']['path'],
-            'cookie_ssl' => (bool) $conf['use_ssl'],
+            'cookie_ssl' => $conf['use_ssl'] == 1,
             'session_name' => $conf['session']['name']
         ));
     }