Webservice: fix variable recuperation from GET to REQUEST -refs BT#21212

pull/5015/head
NicoDucou 2 years ago
parent 108c152fb8
commit f01d382560
  1. 4
      main/webservices/api/v2.php

@ -628,7 +628,7 @@ try {
);
break;
case Rest::GET_USER_LAST_CONNEXION:
$username = (string) $httpRequest->query->get('user');
$username = (string) $_REQUEST['user'];
if (empty($username)) {
throw new Exception(get_lang('NoData'));
@ -642,7 +642,7 @@ try {
);
break;
case Rest::GET_USER_TOTAL_CONNEXION_TIME:
$username = (string) $httpRequest->query->get('user');
$username = (string) $_REQUEST['user'];
if (empty($username)) {
throw new Exception(get_lang('NoData'));

Loading…
Cancel
Save