Keywords from images in private albums visible Keywords from images in private albums visible
 

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

Keywords from images in private albums visible

Started by musikalg, February 06, 2005, 02:24:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

musikalg

I have enabled clickable keywords in search. If I use the seach function without logging in I can  still see keywords from pictures in private albums. If I click on them I just get "No image to display".

Joachim Müller


Joachim Müller

#2
this is what I have come up with, although I don't think it is correct (notice the silly "WHERE" statement) - please review.
In include/keyword.in.php, I changed$result = mysql_query("select keywords from {$CONFIG['TABLE_PICTURES']}");to$result = mysql_query("select keywords FROM {$CONFIG['TABLE_PICTURES']} WHERE 1=1 $ALBUM_SET");It does what it is suppossed to do, but it doesn't look very elegant.

Joachim

Tranz


nol33t

Quoteit doesn't look very elegant
i think it does ;)
didn't check the rest of the code but imho that's how album_set / forbidden_set etc.. should also be called/used, it's not silly at all

Joachim Müller

OK, so I'm marking this as "fixed" then.

Joachim