mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
issue #1150 also protect groupe name on API methods
This commit is contained in:
@@ -61,7 +61,7 @@ SELECT
|
||||
*/
|
||||
function ws_groups_add($params, &$service)
|
||||
{
|
||||
$params['name'] = pwg_db_real_escape_string($params['name']);
|
||||
$params['name'] = pwg_db_real_escape_string(strip_tags(stripslashes($params['name'])));
|
||||
|
||||
// is the name not already used ?
|
||||
$query = '
|
||||
@@ -180,7 +180,7 @@ SELECT COUNT(*)
|
||||
|
||||
if (!empty($params['name']))
|
||||
{
|
||||
$params['name'] = pwg_db_real_escape_string($params['name']);
|
||||
$params['name'] = pwg_db_real_escape_string(strip_tags(stripslashes($params['name'])));
|
||||
|
||||
// is the name not already used ?
|
||||
$query = '
|
||||
|
||||
Reference in New Issue
Block a user