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: bug in cpg 130  (Read 4600 times)

0 Members and 1 Guest are viewing this topic.

chenglee

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
bug in cpg 130
« on: July 17, 2004, 11:25:42 am »

version cpg-130

in include/functions.inc.php
line number 436
code $FORBIDDEN_SET = "p.aid NOT IN (".substr($set, 0, -1).') ';
it should be $FORBIDDEN_SET = "a.aid NOT IN (".substr($set, 0, -1).') ';

otherwise when user hide personal album,than in index.php file,list_users() function cann't show some user album(when list user album and user picture is empty)
Logged

chenglee

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: bug in cpg 130
« Reply #1 on: July 17, 2004, 11:54:28 am »

version cpg-130

in include/functions.inc.php
line number 436
code $FORBIDDEN_SET = "p.aid NOT IN (".substr($set, 0, -1).') ';
it should be $FORBIDDEN_SET = "a.aid NOT IN (".substr($set, 0, -1).') ';

otherwise when user hide personal album,than in index.php file,list_users() function cann't show some user album(when list user album and user picture is empty)

sorry cann't change in include/functions.inc.php,it generate new problem..
so i change i index.php in list_users() funciton

replace this line if ($FORBIDDEN_SET != "") $sql .= "WHERE $FORBIDDEN_SET ";
to
Code: [Select]
       if ($FORBIDDEN_SET != "")
        {
            $FORBIDDEN_SET = str_replace('p.aid', 'a.aid',$FORBIDDEN_SET);
            $sql .= "WHERE $FORBIDDEN_SET ";
        }

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: bug in cpg 130
« Reply #2 on: July 17, 2004, 12:35:20 pm »

cpg1.3.0 is outdated, since cpg1.3.1 has been released. Please upgrade to cpg1.3.1 and report if this fixes your issues.

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.