forum.coppermine-gallery.net
Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Tranz on February 16, 2005, 02:27:06 am
-
Let's say I'm viewing an image in an album and decide to log in.
I get redirected to a URL where the & was changed to & and so the link is invalid and get the following message:
The selected album/file does not exist !
If I edit the & in the URL, it will work.
Just ran a CVS update today.
-
That bug was starting to tickle me on my dev gallery, so in case nobody had the time to fix it yet ( checked at the CVS, don't look like ):
in login.php,
before to call
pageheader($lang_login_php['login'], "<META http-equiv=\"refresh\" content=\"3;url=$referer\">");
$referer has to have "&" replaced by "&"
the nice way is to add before
$referer=html_entity_decode($referer);
however that function is for php >= 4.3
an every php version working fix is to add before the line
$referer=preg_replace("'&'","&",$referer);
hope that helps
-matt-
-
committed fix as suggested, please confirm.
Joachim
-
Thanks, it worked in IE, FF, Opera.