mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
bug 247 fixed : image_id GET parameter was not checked for sanity before
usage in SQL queries. Now, image_id must be a numeric value. git-svn-id: http://piwigo.org/svn/branches/branch-1_5@989 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -42,6 +42,12 @@ if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
|
||||
{
|
||||
check_restrictions( $page['cat'] );
|
||||
}
|
||||
|
||||
if (!is_numeric($_GET['image_id']))
|
||||
{
|
||||
die('Hacking attempt on "image_id" GET parameter');
|
||||
}
|
||||
|
||||
//---------------------------------------- incrementation of the number of hits
|
||||
$query = '
|
||||
UPDATE '.IMAGES_TABLE.'
|
||||
|
||||
Reference in New Issue
Block a user