Skip to content

Commit 71a46c9

Browse files
committed
Fixed #18065: ensure that private_key_bits is always an int.
1 parent 9fa38b7 commit 71a46c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Requests/SettingsSamlRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function withValidator($validator)
109109
];
110110

111111
$pkey = openssl_pkey_new([
112-
'private_key_bits' => config('app.saml_key_size'),
112+
'private_key_bits' => (int) config('app.saml_key_size'),
113113
'private_key_type' => OPENSSL_KEYTYPE_RSA,
114114
]);
115115

0 commit comments

Comments
 (0)