Skip to content

A free open source IT asset/license management system

Fixed #18065: ensure that private_key_bits is always an int.

Sebastian Marsching71a46c9bd64f
diff --git a/app/Http/Requests/SettingsSamlRequest.php b/app/Http/Requests/SettingsSamlRequest.php
index 53a3521018..c9d91d2ba0 100644
--- a/app/Http/Requests/SettingsSamlRequest.php
+++ b/app/Http/Requests/SettingsSamlRequest.php
@@ -109,7 +109,7 @@ class SettingsSamlRequest extends FormRequest
];
$pkey = openssl_pkey_new([
- 'private_key_bits' => config('app.saml_key_size'),
+ 'private_key_bits' => (int) config('app.saml_key_size'),
'private_key_type' => OPENSSL_KEYTYPE_RSA,
]);