Commit 9afe98fc authored by Akhil's avatar Akhil 😶
Browse files

Merge branch 'cast-usage-to-ints' into 'nc21'

Explicitly cast input values of usage array to integer

See merge request e/infra/selfhost/nextcloud-apps/ecloud-drop-account!8
parents 3ddd1af8 3d65e459
......@@ -106,6 +106,8 @@ class UserController extends ApiController
return $response;
try {
// Explicitly cast input values to integer
$usage = array_map(fn ($value) => (int) $value, $usage);
} catch (Exception $e) {
$statusCode = 500;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment