Tried to redirect to potentially insecure url.

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

Tried to redirect to potentially insecure url.

Postby getrich » Thu Aug 11, 2011 11:12 am

Hello,

After the latest update 3.0.9 I am receiving this error when trying to Lock a topic :

====
General Error
Tried to redirect to potentially insecure url.

Please notify the board administrator or webmaster: blabla@email
====

Here is the link in the browser :

mcp.php?f=40&t=6509&start=15&quickmod=1&redirect=.%2Fviewtopic.php%3Ff%3D40%26t%3D6509%26amp%3Bstart%3D15&confirm_key=gregegregewfw

I have not done any modifications on the code. My php languange is not that strong so any type of help is appreciated.

Thanks.
getrich
 
Posts: 4
Joined: Thu Aug 11, 2011 11:03 am

Advertisement

Re: Tried to redirect to potentially insecure url.

Postby dcz » Thu Aug 11, 2011 11:58 am

Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21428
Joined: Fri Apr 28, 2006 9:03 pm

Re: Tried to redirect to potentially insecure url.

Postby getrich » Thu Aug 11, 2011 12:00 pm

With the help of a good friend I've managed to fix this problem by adding the following in includes/functions.php:

$url=str_replace('?amp;','?',$url);

Code:

// Make sure no linebreaks are there... to prevent http response splitting for PHP < 4.4.2
$url=str_replace('?amp;','?',$url);
if (strpos(urldecode($url), "\n") !== false || strpos(urldecode($url), "\r") !== false || strpos($url, ';') !== false)
{
trigger_error('Tried to redirect to potentially insecure url.'.$url, E_USER_ERROR);
}


I am not sure if this is a phpseo bug or phpbb bug :(

I an admin can take a small look I can open a bug report for phpbb.
getrich
 
Posts: 4
Joined: Thu Aug 11, 2011 11:03 am

Re: Tried to redirect to potentially insecure url.

Postby getrich » Thu Aug 11, 2011 12:02 pm

Sorry dcz seems we responded about in the same time. Thanks for the fix, I'll try it and get back to you :)
getrich
 
Posts: 4
Joined: Thu Aug 11, 2011 11:03 am

Re: Tried to redirect to potentially insecure url.

Postby getrich » Thu Aug 11, 2011 12:17 pm

Sorry, the fix you provided does not fix my problem ... same error as before :(
getrich
 
Posts: 4
Joined: Thu Aug 11, 2011 11:03 am

Re: Tried to redirect to potentially insecure url.

Postby dcz » Fri Aug 12, 2011 1:31 pm

Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21428
Joined: Fri Apr 28, 2006 9:03 pm

Re: Tried to redirect to potentially insecure url.

Postby Drak » Sat May 12, 2012 12:00 pm

Thanks, this fixed my issue as well. I haven't even updated anything recently and it started happening. Or maybe i just never noticed, hehe.
Drak
 
Posts: 2
Joined: Tue Jan 25, 2011 3:21 pm


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 40 guests