eon
02-02-2006, 10:24 AM
This bug appears when you enter a pixelpost-site and the owner use the calendar.
Normally the url is like this:
www.test.com
When you try the calendar and press << to go back in history the url is like this:
www.test.com/index.php?curr_month=1&curr_year=2006&showimage=
Notice there is no showimage-number! This will redirect you to the "404 Not Found Don't do that! go back to index.php!"-page for safety reasons.
Solution: calendar.php ~row 204:
$showimage = $_GET['showimage'];
if (empty($showimage)){
$showimage=$image_id;
}
After calendar.php gets the showimage-number, check if the variable ($shownimage) is empty. If it is empty fill it with the current image-id ($image_id).
Normally the url is like this:
www.test.com
When you try the calendar and press << to go back in history the url is like this:
www.test.com/index.php?curr_month=1&curr_year=2006&showimage=
Notice there is no showimage-number! This will redirect you to the "404 Not Found Don't do that! go back to index.php!"-page for safety reasons.
Solution: calendar.php ~row 204:
$showimage = $_GET['showimage'];
if (empty($showimage)){
$showimage=$image_id;
}
After calendar.php gets the showimage-number, check if the variable ($shownimage) is empty. If it is empty fill it with the current image-id ($image_id).