fixes #853, less strict check on user input "selectAction" for tag manager

... for compatibility with plugin Colored Tags (typetags) and maybe other in the future.
This commit is contained in:
plegall
2018-03-23 10:01:06 +01:00
parent a38ff3bac0
commit ebdacd3e83
+1 -1
View File
@@ -33,7 +33,7 @@ if (!empty($_POST))
{
check_pwg_token();
check_input_parameter('tags', $_POST, true, PATTERN_ID);
check_input_parameter('selectAction', $_POST, false, '/^(edit|merge|duplicate|delete)$/');
check_input_parameter('selectAction', $_POST, false, '/^[a-zA-Z0-9_-]+$/');
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);