Page 1 of 1

BABEL MODULE - Solved Problem with IIS7 (403 error)

Posted: Sat Jul 17, 2010 4:53 pm
by seadragon
Hi. I was installing Babel Module on IIS7 and i got error on redirect URL. the error was 403 FORBIDDEN url (redirect.php) with current credential.

AS i usually develop with ASP.NET and IIS (w/wo php) i immediately understood the problem.
Simply IIS block URL that have UNENCODED querystring... and redirect.php is ever called with redirect.php?newurl=http://.....

so the solution is to add 2 simply instruction in action.menu.php and redirect.php


this is the modification to apply. (i would edit this in svn but i'm very new to CMSMS project and i don't know yet the real and good procedure - yes i already read the relative topic)

edit redirect.php and replace LINE 7 with this:

Code: Select all

header("location: ".urldecode($_GET["newurl"]));
edit action.menu.php and replace LINE 30 with:

Code: Select all

		if($item->url && $use_cookies)		$item->url = $gCms->config['root_url'].'/modules/babel/redirect.php?newlang='.$item->code.'&newurl='.urlencode($item->url);
HOPE THIS WILL HELP ALL!

Re: BABEL MODULE - Solved Problem with IIS7 (403 error)

Posted: Sat Jul 17, 2010 4:56 pm
by calguy1000
Please post a bug report in the proper place in the forge.

and refrain from posting code modifications in the forum.

Re: BABEL MODULE - Solved Problem with IIS7 (403 error)

Posted: Sat Jul 17, 2010 5:07 pm
by seadragon