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:
parent
7bdb132ffc
commit
9bc452537e
1 changed files with 6 additions and 0 deletions
|
@ -42,6 +42,12 @@ if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
|
||||||
{
|
{
|
||||||
check_restrictions( $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
|
//---------------------------------------- incrementation of the number of hits
|
||||||
$query = '
|
$query = '
|
||||||
UPDATE '.IMAGES_TABLE.'
|
UPDATE '.IMAGES_TABLE.'
|
||||||
|
|
Loading…
Add table
Reference in a new issue