uh oh, profile displays someone elses thumbnail?!?!? uh oh, profile displays someone elses thumbnail?!?!?
 

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

uh oh, profile displays someone elses thumbnail?!?!?

Started by treasurenet, May 18, 2005, 05:22:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

treasurenet

In the users profiles, there is more than one thumbnail being displayed...

As you can see, not only does it display this user's image (on the right) it's also displaying another user's thumbnail on the left!

Any idea why?

Thx

Nibbler


treasurenet

here it is...

http://www.treasurenet.com/gallery/

I hacked it in order to fix the problem - but I doubt it was the desired solution...

here's what I did...

line 347 of profile.php...





                $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['thumb_width']);
                $mime_content = get_type($picture['filename']);
                $user_thumb = '<img src="' . $pic_url . '" class="image"'
                                . $image_size['geom'] . ' border="0" alt="">';
    Here  --->          $user_thumb = '';
                           
                                       
//    I  changed this...       $user_thumb = '<td width="50%" valign="top" align="center">'
//                            . '<a href="thumbnails.php?album=lastupby&uid=' . $uid . '">'
//                            . $user_thumb
//                            . '</a></td>';
//     to this...    $user_thumb = '';


            }
        }



Joachim Müller

clicking on those two thumbnails will show you what they're being used for: one is for the last uploads made by that user, the other one is for the last comments made by the user. In cpg1.4.x, we have added some text to make this more obvious: above the left thumbnail, there is the caption "Last uploaded file. Click to see all uploads by [username]". Above the right one: "Last comment. Click to see all comments made by [username]". For details: see http://forum.coppermine-gallery.net/index.php?topic=17264.msg80322#msg80322