phpCollab Community
Discuss everything phpCollab!

The forums are currently in READ-ONLY mode while we upgrade the forums.
Home » Community » Bug Reports » [BUG] Go to last page downloads file
[BUG] Go to last page downloads file [message #8165] Wed, 05 September 2007 16:13 Go to next message
tlawson is currently offline  tlawson
Messages: 4
Registered: July 2007
Location: Toronto
phpCollab guest
The last thing I did before my session expired was download a file. Upon attempting to log in again, I was prompted to download the file. I see that the code was designed to remove the last visited page, but the download page puts itself back in the last visited, causing an endless loop.

My fix is to not even record when we're on "accessfile.php".
--- includes/library.php        2007-09-05 10:09:36.000000000 -0400
+++ includes/library.php.fixed  2007-09-05 10:09:15.000000000 -0400
@@ -294,7 +294,7 @@

        if ($lastvisitedpage)
        {
-               if (!strstr($_SERVER['PHP_SELF'],"graph"))
+               if (!strstr($_SERVER['PHP_SELF'],"graph") && !strstr($_SERVER['PHP_SELF'],"accessfile"))
                {
                                $sidCode = session_name();
                                $page = $_SERVER['PHP_SELF']."?".$QUERY_STRING;

[Updated on: Mon, 10 September 2007 03:32]

Report message to a moderator

Re: [BUG] Go to last page downloads file [message #8184 is a reply to message #8165] Tue, 18 September 2007 03:36 Go to previous message
tlawson is currently offline  tlawson
Messages: 4
Registered: July 2007
Location: Toronto
phpCollab guest
This is a patch computed against latest CVS checkout.
Previous Topic: Installation and setup issues
Next Topic: [BUG] email not sent
Goto Forum:
  


Current Time: Sat May 25 01:02:24 CEST 2013

Total time taken to generate the page: 0.27586 seconds