BUG: Renamed MiniThumbs and Avatar_Manage.php BUG: Renamed MiniThumbs and Avatar_Manage.php
 

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

BUG: Renamed MiniThumbs and Avatar_Manage.php

Started by bitcloud, April 27, 2007, 03:17:12 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

bitcloud

Hey stramm..

another bit of a minithumb bug for you :)

when you rename a file in the file information editor it will stop displaying it in the Avatar_Manage.php (and consequently in the profile if you set this file as your avatar)

I think when you rename the file it's not renaming the minithumb and updating the minithumb database. If you set "thisfile.jpg" as your avatar it will continue to display "mini_thisfile.jpg" in your profile even after you rename the file to "thatfile" - "mini_thisfile.jpg" still exists and the profile still displays that avatar for the file that shouldn't still exist... the avatar_manage file list will look for "mini_thatfile.jpg" (which doesn't exist)

I've tested this out on http://stramm.st.funpic.org/ (uploaded a file.. renamed it. visited avatar_manage.php)

So, to summarise:
1) the modpack isn't renaming the mini_ version of the file when you rename the file
2) the modpack isn't updating that change in the user's minithumb database entry

cheers
lachlan

Stramm

you're good in finding the lil glitches

- Fixed the renaming problem. When renaming a file using editOnePic.php orig_ and mini_ files get renamed as well.
- Avatars created from already uploaded pics now get copied from minithumb pic to a file user_USER_ID + FIRST_USER_CAT_avatar.mime. That's the naming sheme I already use when a user uploads a file to use as avatar. This way I avoid checking if the renamed file is used as avatar.

orig, mini rename fix for modpack 1.4.10 v1

PS.: Thanks for the finding and be aware that the fix isn't tested that much

bitcloud

thanks for the quick response..

My files are all pretty modded.. is there any chance you could outline the fix so i can apply them to my files?

Stramm


bitcloud