| [BUG] Go to last page downloads file [message #8165] |
Wed, 05 September 2007 16:13  |
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
|
|
|
|
|
|