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: Critical error: There was an error while processing a database query.  (Read 2799 times)

0 Members and 1 Guest are viewing this topic.

meloniq

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
    • MELONIQ.NET

When my user want upload images, show him bug

Critical error: There was an error while processing a database query.

Code: [Select]
While executing query "INSERT INTO cpg133_pictures (pid, aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip)
VALUES ('', '22', 'userpics/10327/', 'luis_royo172~0.jpeg', '31653', '53720', '503', '700', '1133724303', '327', 'o'qlt','luis', '', '', 'YES', '', '', '', '', '80.49.126.130', '80.49.126.130')" on 0

mySQL error: Something is wrong in your syntax obok 'qlt','luis', '', '', 'YES', '', '', '', '', '80.49.126.130', '80' in line 1

I know that it's problem with his login (o'qlt)
If is the other solution, beside change his login? ::)

I greet,
meloniq
« Last Edit: December 04, 2005, 11:15:15 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Critical error: There was an error while processing a database query.
« Reply #1 on: December 04, 2005, 09:33:02 pm »

include/picmgmt.inc.php, find

Code: [Select]
$username= USER_NAME;
change to

Code: [Select]
$username= addslashes(USER_NAME);
Logged

meloniq

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
    • MELONIQ.NET
Re: Critical error: There was an error while processing a database query.
« Reply #2 on: December 04, 2005, 11:04:22 pm »

Thank You very much for fast reply ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.