phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [18971] fix : check if sessionid is empty to prevent


From: Pascal Vilarem
Subject: [Phpgroupware-cvs] [18971] fix : check if sessionid is empty to prevent phpgw from trying to remove the whole temp dir at logout
Date: Sat, 25 Oct 2008 18:20:14 +0000

Revision: 18971
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18971
Author:   maat
Date:     2008-10-25 18:20:11 +0000 (Sat, 25 Oct 2008)

Log Message:
-----------
fix : check if sessionid is empty to prevent phpgw from trying to remove the 
whole temp dir at logout

Modified Paths:
--------------
    core/trunk/logout.php

Modified: core/trunk/logout.php
===================================================================
--- core/trunk/logout.php       2008-10-25 18:13:31 UTC (rev 18970)
+++ core/trunk/logout.php       2008-10-25 18:20:11 UTC (rev 18971)
@@ -31,7 +31,7 @@
        $verified = $GLOBALS['phpgw']->session->verify();
        if ($verified)
        {
-               if ( 
is_dir("{$GLOBALS['phpgw_info']['server']['temp_dir']}/{$sessionid}") )
+               if ( !empty($session_id) && 
is_dir("{$GLOBALS['phpgw_info']['server']['temp_dir']}/{$sessionid}") )
                {
                        $dh = 
dir("{$GLOBALS['phpgw_info']['server']['temp_dir']}/{$sessionid}");
                        while ( ($file = $dh->read()) !== false )






reply via email to

[Prev in Thread] Current Thread [Next in Thread]