BABEL MODULE - Solved Problem with IIS7 (403 error)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
seadragon
New Member
New Member
Posts: 9
Joined: Fri Jul 16, 2010 7:22 am

BABEL MODULE - Solved Problem with IIS7 (403 error)

Post 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!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

Please post a bug report in the proper place in the forge.

and refrain from posting code modifications in the forum.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
seadragon
New Member
New Member
Posts: 9
Joined: Fri Jul 16, 2010 7:22 am

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

Post by seadragon »

Post Reply

Return to “Modules/Add-Ons”