mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
fixes #839, check input parameters on admin/tags.php
This commit is contained in:
@@ -32,6 +32,11 @@ check_status(ACCESS_ADMINISTRATOR);
|
|||||||
if (!empty($_POST))
|
if (!empty($_POST))
|
||||||
{
|
{
|
||||||
check_pwg_token();
|
check_pwg_token();
|
||||||
|
check_input_parameter('tags', $_POST, true, PATTERN_ID);
|
||||||
|
check_input_parameter('selectAction', $_POST, false, '/^(edit|merge|duplicate|delete)$/');
|
||||||
|
check_input_parameter('edit_list', $_POST, false, '/^\d+(,\d+)*$/');
|
||||||
|
check_input_parameter('merge_list', $_POST, false, '/^\d+(,\d+)*$/');
|
||||||
|
check_input_parameter('destination_tag', $_POST, false, PATTERN_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
|
|||||||
Reference in New Issue
Block a user