3
0
mirror of https://github.com/snipe/snipe-it.git synced 2025-10-29 11:21:21 +00:00

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

This commit is contained in:
Sebastian Marsching 2025-10-18 13:01:30 +02:00
parent 9fa38b70c8
commit 71a46c9bd6

View File

@ -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,
]);