|
@@ -7,7 +7,7 @@ |
|
|
block discarded – undo |
|
7
|
7
|
// preg_replace() instead of preg_match() to prevent DoS attacks with long host names. |
|
8
|
8
|
// |
|
9
|
9
|
// TODO: -> SECURITY | https://github.com/kalessil/phpinspectionsea/issues/302 |
|
10
|
|
- ->asValue(!empty($_SERVER['SERVER_NAME']) && '' === preg_replace('/(?:^\[)?[a-zA-Z0-9-:\]_]+\.?/', '', $_SERVER['SERVER_NAME']) ? trim($_SERVER['SERVER_NAME'], '[]') : (gethostname() ?: '127.0.0.1' )) |
|
|
10
|
+ ->asValue(!empty($_SERVER['SERVER_NAME']) && '' === preg_replace('/(?:^\[)?[a-zA-Z0-9-:\]_]+\.?/', '', $_SERVER['SERVER_NAME']) ? trim($_SERVER['SERVER_NAME'], '[]') : (gethostname() ?: '127.0.0.1')) |
|
11
|
11
|
|
|
12
|
12
|
->register('transport.smtp') |
|
13
|
13
|
->asNewInstanceOf('Swift_Transport_EsmtpTransport') |
Please login to merge, or discard this patch.