Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: extra characters added to URL of custom files  (Read 2852 times)

0 Members and 1 Guest are viewing this topic.

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
extra characters added to URL of custom files
« 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:
Code: [Select]
<?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?
« Last Edit: February 10, 2006, 10:00:43 pm by GauGau »
Logged

Nibbler

  • Guest
Re: extra characters added to URL of custom files
« Reply #1 on: February 10, 2006, 04:13:20 pm »

Edit bridge/smf10.inc.php and preserve the $_GET superglobal like this

Code: [Select]
$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.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: extra characters added to URL of custom files
« Reply #2 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! :-*
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.