https://www.icyphoenix.com/viewtopic.php?f=35&t=6309&p=42947#p42947
-----------------------------------
FedericoBiccheddu
Sat 15 Aug, 2009 10:59

[FIX] Variables Passed In The Login Redirect
-----------------------------------
Beacause I am a perfectionist ( :mrblue: ), I wanted to report a "problem" and possible fix to this problem.

When we have not logged in the pages, thanks to Icy Phoenix variable {U_LOGIN_LOGOUT} allows us to be redirected to the page you were visiting.

It's probable that the address being passed several variables, are normally passed as follows:
[code linenumbers=false]login_ip.php?redirect=page.php&var1=value1&var2=value2[/code]

but it should be so:
[code linenumbers=false]login_ip.php?redirect=page.php?var1=value1&var2=value2[/code]

to "correct", open /includes/page_header.php, search:
[code linenumbers=false]	if(isset($_GET) && !empty($smart_redirect))
	{
		$smart_get_keys = array_keys($_GET);
		for ($i = 0; $i < count($_GET); $i++)
		{
			if ($smart_get_keys[$i] != 'sid')
			{
				$smart_redirect .= '&amp;' . $smart_get_keys[$i] . '=' . urlencode(ip_utf8_decode($_GET[$smart_get_keys[$i]]));
			}
		}
	}[/code]

Replace with:
[code linenumbers=false]	if(isset($_GET) && !empty($smart_redirect))
	{
		$smart_get_keys = array_keys($_GET);
		for ($i = 0; $i < count($_GET); $i++)
		{
			if ($smart_get_keys[$i] != 'sid')
			{
				if ($i == 0)
				{
					$smart_redirect .= '?';
				}
				else
				{
					$smart_redirect .= '&amp;';
				}
				$smart_redirect .= $smart_get_keys[$i] . '=' . urlencode(ip_utf8_decode($_GET[$smart_get_keys[$i]]));
			}
		}[/code]

It 'a very small thing, but make more perfect our Icy :loveit:


