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: [cpg1.4.x]: function list_cat_albums -> Hardcoded value 10000  (Read 1664 times)

0 Members and 1 Guest are viewing this topic.

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - (Windows)
    • Makc's home page
[cpg1.4.x]: function list_cat_albums -> Hardcoded value 10000
« on: November 10, 2008, 03:04:27 pm »

In file:
index.php

We have a hardcoded value 10000 in code:
Code: [Select]
$cat_owner_id = ($cat > 10000)?(10000 - $cat):(10001);
I think it must be replaced by this one:
Code: [Select]
$cat_owner_id = ($cat > FIRST_USER_CAT)?(FIRST_USER_CAT - $cat):(FIRST_USER_CAT+1);
Logged

Joachim Mller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [cpg1.4.x]: function list_cat_albums -> Hardcoded value 10000
« Reply #1 on: November 10, 2008, 03:56:34 pm »

That's wrong as far as I can see. Personal galleries start at 10000 no matter what.
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 20 queries.