mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
- bug 107 fixed: crash when logging visit on a category containing "'"
character. Correction reported from branch 1.4 - bug fixed: in admin/stats, incorrect SQL queries gave no result. git-svn-id: http://piwigo.org/svn/trunk@868 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -359,11 +359,11 @@ INSERT INTO '.HISTORY_TABLE.'
|
||||
(date,login,IP,file,category,picture)
|
||||
VALUES
|
||||
(NOW(),
|
||||
\''.(($user['id'] == 2) ? 'guest' : $user['username']).'\',
|
||||
\''.(($user['id'] == 2) ? 'guest' : addslashes($user['username'])).'\',
|
||||
\''.$_SERVER['REMOTE_ADDR'].'\',
|
||||
\''.$file.'\',
|
||||
\''.$category.'\',
|
||||
\''.$picture.'\')
|
||||
\''.addslashes($file).'\',
|
||||
\''.addslashes($category).'\',
|
||||
\''.addslashes($picture).'\')
|
||||
;';
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user