Advanced search  

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]

Pages: [1]   Go Down

Author Topic: One / too much?  (Read 3564 times)

0 Members and 1 Guest are viewing this topic.

sott

  • Guest
One / too much?
« 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...
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: One / too much?
« Reply #1 on: February 04, 2007, 09:34:54 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
« Last Edit: February 05, 2007, 08:01:51 am by GauGau »
Logged
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
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.