coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Tranz on February 10, 2006, 01:19:36 PM

Title: extra characters added to URL of custom files
Post by: Tranz on February 10, 2006, 01:19:36 PM
This goes under the *beep*?! category...

Let's say I have a file like this: http://takethu.com/reallyweird.php

If I change the theme or language via dropdown menu, the URL becomes this: http://takethu.com/reallyweird.php?rd_php=&lang=english

It doesn't happen with this file: http://takethu.com/weird.php

To rule out that it's a coding error in the pages I've added, I made the code as simple as possible. The difference between the files is the adjective being "short" or "long:
<?php
define
('IN_COPPERMINE'true);

require(
'include/init.inc.php');

pageheader('short filename');

echo 
'short filename';

pagefooter();
?>


This doesn't happen on my home test server... just the remote one.

I checked my .htaccess files and don't see what could cause this.

It doesn't happen to displayimage.php, which has one more character than reallyweird.php so it has to do with non-Coppermine files.

What could cause this? Is it a server setup?
Title: Re: extra characters added to URL of custom files
Post by: Nibbler on February 10, 2006, 04:13:20 PM
Edit bridge/smf10.inc.php and preserve the $_GET superglobal like this


$temp = $_GET;
require_once($BRIDGE['relative_path_to_config_file'] . 'SSI.php');
$_GET = $temp;


I may have to reconsider using SSI.php for the bridge, it interferes too much.
Title: Re: extra characters added to URL of custom files
Post by: Tranz on February 10, 2006, 04:56:07 PM
ohh... so it's not a server thing. My test gallery is not bridged, but my live one is bridged to SMF.

Dang, you're a genius. That fixed it. How did you pinpoint the problem?

Thanks so much! :-*