Double slashes in URL Double slashes in URL
 

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

Double slashes in URL

Started by dFury, December 16, 2003, 01:57:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dFury

For some reason my site adds a backslash to the path every now and then.  For example, my will sometimes come up as "http://www.pictures.net//displayimage.php?album=24&pos=0"

You'll notice that there is a double slash at the end of my domain.  This causes problems when I try to go to the slideshow from a page that loads with the double slash.  You can easily reproduce the error by adding a slash to your url, load the page, and then try to go to an ecard or slideshow from there.

I can't seem to reproduce getting the double slash to appear, but it happens often enough that I know it's not a fluke.  I've checked the configuration and removed the slash from the end of my domain name.  I thought that it was the "Target address for the 'See more pictures' link in e-cards" field, but that didn't help either.

Does anyone have any suggestions?  Could it be something in my theme?  I'm using the Gialo theme.

FURY

rbl

Have you messed with your .htaccess file?

btw, posting your real url would help =)

Joachim Müller

go to coppermine config and check you "link to ecard" value: remove the slash at the end - should read
Quotehttp://www.pictures.net
instead of
Quotehttp://www.pictures.net/

GauGau

dFury

I tried changing the e-card field, but that hasn't helped.  I also looked into the .htaccess file and there isn't anything relevant in it.  Sorry for not posting my real URL.  Here it is.  Check it out and you may run into the prob.

http://www.jhsu.net

MaThIbUs

[size=24]displayimage.php[/size]

{search for}
   // Create the absolute URL for display in info
    $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . ' >' . $CONFIG["ecards_more_pic_target"] . '/' . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';


{replace with}
   // Create the absolute URL for display in info
    $info['URL'] = '<a href=' . $CONFIG["ecards_more_pic_target"] . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . ' >' . $CONFIG["ecards_more_pic_target"] . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';


I would like to see this changed in a future Coppermine version, seeing as a full URL should end with /. As a matter of fact, it's incorrect to put a URL in the e-card field without a trailing slash. Just my two cents :)

dFury

Thanks for the tip!  However, I realized that the problem only occurs when I launch a browser from the Windows XP publishing wizard.  I'll try this and see if it helps.

Thanks!