Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;