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: Charset Manager (charsetmgr.php) - missing conversion  (Read 8012 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
Charset Manager (charsetmgr.php) - missing conversion
« on: June 09, 2006, 11:29:13 pm »

In Charset Manager (charsetmgr.php) there is no any conversion for such strings in user's profile as:
  • Location
  • Interests
  • Website
  • Occupation
  • Biography

Hm...

But I looked at the code of charsetmgr.php and found that there is line for 'user_location', 'user_interests', 'user_occupations'
Code: [Select]
            $affected_elements = array(
                                       $CONFIG['TABLE_ALBUMS'] =>
                                       array('aid', 'title', 'description', 'keyword'),
                                       $CONFIG['TABLE_PICTURES'] =>
                                       array('pid', 'title', 'caption', 'keywords'),
                                       $CONFIG['TABLE_COMMENTS'] =>
                                       array('msg_id', 'msg_author', 'msg_body'),
                                       $CONFIG['TABLE_CATEGORIES'] =>
                                       array('cid', 'name', 'description'),
                                       $CONFIG['TABLE_USERGROUPS'] =>
                                       array('group_id', 'group_name'),
                                       $CONFIG['TABLE_USERS'] =>
                                       array('user_id', 'user_name', 'user_password', 'user_location', 'user_interests', 'user_occupations')
                                       );
But when I run charsetmgr.php those fields are not affected.
Also. There is no any string for Biography...

Ah...
I found.

In database there are no such strings as 'user_location', 'user_interests', 'user_occupations'!

There are strings:
  • user_profile1
  • user_profile2
  • user_profile3
  • user_profile4
  • user_profile5
  • user_profile6
« Last Edit: June 26, 2006, 07:10:03 am by Paver »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Charset Manager (charsetmgr.php) - missing conversion
« Reply #1 on: June 10, 2006, 01:08:12 am »

'user_location', etc. may have been from before you could rename the user profile fields.

This looks like a bug.
Logged

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Русский (Windows)
    • Makc's home page
Re: Charset Manager (charsetmgr.php) - missing conversion
« Reply #2 on: June 10, 2006, 01:12:15 am »

'user_location', etc. may have been from before you could rename the user profile fields.

These strings are used in Database.
  • user_profile1
  • user_profile2
  • user_profile3
  • user_profile4
  • user_profile5
  • user_profile6
They can't be renamed via CPG config panel.

I checked on clean CPG 1.4.*
It uses these strings.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Charset Manager (charsetmgr.php) - missing conversion
« Reply #3 on: June 10, 2006, 01:19:55 am »

Correct.  I was just trying to speculate why 'user_location' etc. were present in charsetmgr.php. 

This speculation is not relevant to the current state of Coppermine.  You are correct that the current fields should be 'user_profile1' etc.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Charset Manager (charsetmgr.php) - missing conversion
« Reply #4 on: June 26, 2006, 07:09:52 am »

Fixed & committed to stable & devel.  Will be in the next version (1.4.9).
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.