Changeset 27811 for trunk/ws.php


Ignore:
Timestamp:
Mar 17, 2014, 11:20:28 PM (10 years ago)
Author:
plg
Message:

merge r27810 from branch 2.6 to trunk

bug 3055: add security pwg_token on API methods introduced in Piwigo 2.6
(pwg.groups.addUser, pwg.groups.deleteUser, pwg.groups.setInfo, pwg.users.add,
pwg.users.setInfo, pwg.permissions.add, pwg.permissions.remove)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ws.php

    r26837 r27811  
    773773        'is_default' => array('flags'=>WS_PARAM_OPTIONAL,
    774774                              'type'=>WS_TYPE_BOOL),
     775        'pwg_token' => array(),
    775776        ),
    776777      'Updates a group. Leave a field blank to keep the current value.',
     
    786787        'user_id' =>  array('flags'=>WS_PARAM_FORCE_ARRAY,
    787788                            'type'=>WS_TYPE_ID),
     789        'pwg_token' => array(),
    788790        ),
    789791      'Adds one or more users to a group.',
     
    799801        'user_id' =>  array('flags'=>WS_PARAM_FORCE_ARRAY,
    800802                            'type'=>WS_TYPE_ID),
     803        'pwg_token' => array(),
    801804        ),
    802805      'Removes one or more users from a group.',
     
    851854        'email' =>    array('default'=>null),
    852855        'send_password_by_mail' => array('default'=>false, 'type'=>WS_TYPE_BOOL),
     856        'pwg_token' => array(),
    853857        ),
    854858      'Registers a new user.',
     
    900904        'enabled_high' =>     array('flags'=>WS_PARAM_OPTIONAL,
    901905                                    'type'=>WS_TYPE_BOOL),
     906        'pwg_token' => array(),
    902907        ),
    903908      'Updates a user. Leave a field blank to keep the current value.
     
    937942        'recursive' =>  array('default'=>false,
    938943                              'type'=>WS_TYPE_BOOL),
     944        'pwg_token' => array(),
    939945        ),
    940946      'Adds permissions to an album.',
     
    953959        'user_id' =>  array('flags'=>WS_PARAM_FORCE_ARRAY|WS_PARAM_OPTIONAL,
    954960                            'type'=>WS_TYPE_ID),
     961        'pwg_token' => array(),
    955962        ),
    956963      'Removes permissions from an album.',
Note: See TracChangeset for help on using the changeset viewer.