bug 1850 fixed: strong check of $_GET['cat']
git-svn-id: http://piwigo.org/svn/branches/2.1@6909 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
4a28e4dfcd
commit
faa88d61bd
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,8 @@ $page['where_clauses'] = array();
|
||||||
// which category to filter on ?
|
// which category to filter on ?
|
||||||
if (isset($_GET['cat']) and 0 != $_GET['cat'])
|
if (isset($_GET['cat']) and 0 != $_GET['cat'])
|
||||||
{
|
{
|
||||||
|
check_input_parameter('cat', $_GET, false, PATTERN_ID);
|
||||||
|
|
||||||
$page['where_clauses'][] =
|
$page['where_clauses'][] =
|
||||||
'category_id IN ('.implode(',', get_subcat_ids(array($_GET['cat']))).')';
|
'category_id IN ('.implode(',', get_subcat_ids(array($_GET['cat']))).')';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue