Bug in Coppermine with SMF if user not logged in Bug in Coppermine with SMF if user not logged in
 

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 in Coppermine with SMF if user not logged in

Started by MoskmaN, June 09, 2008, 07:37:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MoskmaN

I have the problem , "query error conecting with database"
The error pops when i have not a user logged.
I solved the problem editing /include/init.inc.php
Line 395

when:

$user_id = USER_ID;
$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_BANNED']} WHERE (ip_addr='$raw_ip' OR ip_addr='$hdr_ip' OR user_id='$user_id') AND brute_force=0");


replace with:

$user_id = USER_ID;
IF (empty($user_id)) {$user_id=´guest´;}; 
$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_BANNED']} WHERE (ip_addr='$raw_ip' OR ip_addr='$hdr_ip' OR user_id='$user_id') AND brute_force=0");

Joachim Müller

Not a valid bug report. If you actually want to report a potential bug, post the details described in the sticky thread on this board.

MoskmaN

sorry for the problem, please you can move the topic to that section?

MoskmaN

i forgot post this

SMF v1.1.5  Coppermine v1.4.18

Joachim Müller

Quote from: MoskmaN on June 09, 2008, 07:47:49 AM
please you can move the topic to that section?
I already told you that yours is not a valid bug report, so I won't move this thread to the bugs board
Quote from: Joachim Müller on June 09, 2008, 07:45:20 AM
Not a valid bug report.
You should do as I suggested:
Quote from: Joachim Müller on June 09, 2008, 07:45:20 AM
post the details described in the sticky thread on this board.
The thread I refered to is When requesting bridge support - mandatory!.

MoskmaN

i cant have permission for post in there!  >:(
my user here is new.

Joachim Müller

Exactly: you don't have permissions to start new threads on the bugs board, because we don't want postings like yours to go into the bugs board. Only threads that are valid bug reports will be moved there by a moderator.
Start by reading my reply and doing as I suggested there instead of arguing about why you can't post on the bugs board. I already told you what you need to do to make your thread a valid bug report. Currently, your posting is just invalid. Period.