CMS MADE SIMPLE FORGE

Babel: Multilingual site

 

[#5179] redirect.php IIS7 error 403 forbidden

avatar
Created By: Alessandro (ADG)
Date Submitted: Sat Jul 17 13:06:35 -0400 2010

Assigned To: Pierre-Luc Germain (plger)
Version: Babel: Multilingual site 0.3.4
CMSMS Version: None
Severity: Critical
Resolution: None
State: Open
Summary:
redirect.php IIS7 error 403 forbidden
Detailed Description:
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


edit redirect.php and replace LINE 7 with this:
[code]header("location: ".urldecode($_GET["newurl"]));[/code]

edit action.menu.php and replace LINE 30 with:

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!

(el to forum: http://forum.cmsmadesimple.org/index.php/topic,45765.0.html )


History