Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf8df5f6

Browse files
Throw exception before normalization on invalid cipher
1 parentd5eb5a6 commitf8df5f6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,14 @@ private function addMailerSection(ArrayNodeDefinition $rootNode, callable $enabl
22992299
->defaultNull()
23002300
->beforeNormalization()
23012301
->always(function ($v): ?int {
2302-
returnnull !==$v &&\defined('OPENSSL_CIPHER_'.$v) ?\constant('OPENSSL_CIPHER_'.$v) :null;
2302+
if (null ===$v) {
2303+
returnnull;
2304+
}
2305+
if (\defined('OPENSSL_CIPHER_'.$v)) {
2306+
return\constant('OPENSSL_CIPHER_'.$v);
2307+
}
2308+
2309+
thrownew \InvalidArgumentException(\sprintf('%s is not a valid OPENSSL cipher.',$v));
23032310
})
23042311
->end()
23052312
->validate()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp