One / too much? One / too much?
 

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

One / too much?

Started by sott, February 04, 2007, 02:54:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sott

Hi there,

just integrated coppermine-fetch 1.6.4 with the following code

<?php
include "./cpmfetch/cpmfetch.php";
$options = array('imagelink' => 'none');
$objCpm = new cpm("/coppermine");
$objCpm->cpm_viewRandomMedia(1,1,$options);
$objCpm->cpm_close();
?>

Everything works fine but there seems to be an little error, for example:

<img  src="/coppermine//albums/mygallery/thumb_IMG_1224.JPG" alt="IMG_1224.JPG" title="IMG_1224.JPG"  />

So the generated output is "coppermine//" instead of "coppermine/".

Thank you, keep up the good work...

vuud

#1
Quote from: sott on February 04, 2007, 02:54:24 PM
Hi there,

just integrated coppermine-fetch 1.6.4 with the following code

<?php
include "./cpmfetch/cpmfetch.php";
$options = array('imagelink' => 'none');
$objCpm = new cpm("/coppermine");
$objCpm->cpm_viewRandomMedia(1,1,$options);
$objCpm->cpm_close();
?>


Everything works fine but there seems to be an little error, for example:

<img  src="/coppermine//albums/mygallery/thumb_IMG_1224.JPG" alt="IMG_1224.JPG" title="IMG_1224.JPG"  />

So the generated output is "coppermine//" instead of "coppermine/".

Thank you, keep up the good work...
Hi, thanks for reporting this.  Its a known issue that I believe is fixed in the development (soon-in-theory-to-be-released) version.

Forgot why it happens though
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco