phpbb2.0.x bridge problem phpbb2.0.x bridge problem
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

phpbb2.0.x bridge problem

Started by canelli, August 08, 2005, 08:09:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

canelli

I'm testing the phpbb2 2.0.x bridge from cpg 1.4.1 beta.

I'm running the test web on my laptop with this configuration

M$ Win XP2 SP2
IIS 5.0
PHP 4.3.10

the gallery works fine in standalone mode. I had some troubles in login and logout phase with the gallery bridged with phpbb2

the webs paths are

cpg - http://localhost/centroveladervio/cpg141
phpbb2 -  http://localhost/centroveladervio/phpbb2


bridge setting:
Forum URL:  http://localost/centroveladervio/phpbb2 
Relative path to your BBS's config file:  ../phpbb2/ 
Use post-based groups?:  0 
Cookie prefix:  phpbb2mysql

When I try the login from cpg the url made is

http://localhost/centroveladervio/phpbb2/login.php?redirect=..../centroveladervio/cpg141/

I can login in phpbb2 but the redirect url is wrong  (missing a / in the redirect part).

If I mannualy use the url
http://localhost/centroveladervio/phpbb2/login.php?redirect=../../centroveladervio/cpg141/
the login take on and I'm redirected to the cpg site


canelli


Nibbler

Can you try changing this line in the bridge file

$redirect = str_repeat('..', $levels) . rtrim($cpg['path'], '/') . '/';

to

$redirect = str_repeat('../', $levels) . trim($cpg['path'], '/') . '/';

canelli

I made the fix in file phpbb.inc.php , function login_page() and logout_page()

The mod works on my test environments (WIN XP + IIS50 + PHP 4.3.10,  linux + apache 1.3.27 + PHP 4.3.2, WIN2000 + IIS50 + PHP 4.3.10)