[Svn] r4284 - trunk/plugins/kolab_core

trac at roundcube.net trac at roundcube.net
Sat Nov 27 17:37:22 CET 2010


Author: thomasb
Date: 2010-11-27 10:37:22 -0600 (Sat, 27 Nov 2010)
New Revision: 4284

Modified:
   trunk/plugins/kolab_core/rcube_kolab.php
Log:
Simplify shutdown, now that it is always triggered

Modified: trunk/plugins/kolab_core/rcube_kolab.php
===================================================================
--- trunk/plugins/kolab_core/rcube_kolab.php	2010-11-27 16:36:24 UTC (rev 4283)
+++ trunk/plugins/kolab_core/rcube_kolab.php	2010-11-27 16:37:22 UTC (rev 4284)
@@ -48,6 +48,8 @@
             );
             Auth::setCredential('password', $pwd);
         }
+        
+        NLS::setCharset('UTF-8');
     }
     
     
@@ -95,15 +97,8 @@
      */
     public static function shutdown()
     {
-        if (isset($_SESSION['__auth'])) {
-            // unset auth data from session. no need to store it persistantly
+        // unset auth data from session. no need to store it persistantly
+        if (isset($_SESSION['__auth']))
             unset($_SESSION['__auth']);
-            
-            // FIXME: remove strange numeric entries
-            foreach ($_SESSION as $key => $val) {
-                if (!$val && is_numeric($key))
-                    unset($_SESSION[$key]);
-            }
-        }
     }
 }

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list