Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
voku authored and StyleCIBot committed Sep 22, 2017
1 parent 44e98b0 commit 43c8f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dependency_maps/transport_deps.php
Expand Up @@ -7,7 +7,7 @@
// preg_replace() instead of preg_match() to prevent DoS attacks with long host names.
//
// TODO: -> SECURITY | https://github.com/kalessil/phpinspectionsea/issues/302
->asValue(!empty($_SERVER['SERVER_NAME']) && '' === preg_replace('/(?:^\[)?[a-zA-Z0-9-:\]_]+\.?/', '', $_SERVER['SERVER_NAME']) ? trim($_SERVER['SERVER_NAME'], '[]') : (gethostname() ?: '127.0.0.1' ))
->asValue(!empty($_SERVER['SERVER_NAME']) && '' === preg_replace('/(?:^\[)?[a-zA-Z0-9-:\]_]+\.?/', '', $_SERVER['SERVER_NAME']) ? trim($_SERVER['SERVER_NAME'], '[]') : (gethostname() ?: '127.0.0.1'))

->register('transport.smtp')
->asNewInstanceOf('Swift_Transport_EsmtpTransport')
Expand Down

0 comments on commit 43c8f4c

Please sign in to comment.