Skip to content

Commit 4e74c97

Browse files
authored
Merge pull request #18066 from smarsching/issue-18065
Fixed #18065: Ensure that private_key_bits is always an int
2 parents 9fa38b7 + 71a46c9 commit 4e74c97

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)