mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
change to strlen in php strings cannot be counted
This commit is contained in:
parent
8b29556ba5
commit
6b48f58005
@ -156,7 +156,7 @@ class AppRequestsController extends AppController
|
||||
if($required_fields !== true) {
|
||||
return $this->returnJson($required_fields);
|
||||
}
|
||||
if(!isset($params['memo']) || count($params['memo']) < 5 || count($params['memo']) > 150) {
|
||||
if(!isset($params['memo']) || strlen($params['memo']) < 5 || strlen($params['memo']) > 150) {
|
||||
return $this->returnJson(['state' => 'error', 'msg' => 'memo is not set or not in expected range [5;150]']);
|
||||
}
|
||||
$params['transaction_type'] = 'transfer';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user