Completed
Push — 5.x ( 2a7c65...e0e3d7 )
by Lars
03:55
created
lib/dependency_maps/transport_deps.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -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.