mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
fixes #826, check input parameter order_by in configuration
This commit is contained in:
1 parent
9028c75c1f
commit
9671454e75
1 file changed
+2
@@ -161,6 +161,8 @@ if (isset($_POST['submit']))
|
||||
{
|
||||
if ( !empty($_POST['order_by']) )
|
||||
{
|
||||
check_input_parameter('order_by', $_POST, true, '/^('.implode('|', array_keys($sort_fields)).')$/');
|
||||
|
||||
$used = array();
|
||||
foreach ($_POST['order_by'] as $i => $val)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user