mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #1924 protect API user input from SQL injections
This commit is contained in:
2
ws.php
2
ws.php
@@ -1102,6 +1102,8 @@ function ws_addDefaultMethods( $arr )
|
||||
'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE),
|
||||
'order' => array('default'=>'id',
|
||||
'info'=>'id, username, level, email'),
|
||||
'exclude' => array('flags'=>WS_PARAM_OPTIONAL|WS_PARAM_FORCE_ARRAY,
|
||||
'type'=>WS_TYPE_ID),
|
||||
'display' => array('default'=>'basics',
|
||||
'info'=>'Comma saparated list (see method description)'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user