Commit 3d65e459 authored by Akhil's avatar Akhil 😶
Browse files

Explicitly cast input values of usage array to integer

parent 3ddd1af8
......@@ -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);
$this->updateMailQuotaUsageInPreferences($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