git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13730
7612ce4b-ef26-0410-bec9-
ea0150e637f0
// if the host is an IPv4 address, enclose it in brackets
//
- if (preg_match('/\d+\.\d+\.\d+\.\d+/', $helohost))
+ if (preg_match('/^\d+\.\d+\.\d+\.\d+$/', $helohost))
$helohost = '[' . $helohost . ']';
/* Lets introduce ourselves */
// format EHLO argument correctly if needed
//
- if (preg_match('/\d+\.\d+\.\d+\.\d+/', $client_ip))
+ if (preg_match('/^\d+\.\d+\.\d+\.\d+$/', $client_ip))
$helohost = '[' . $client_ip . ']';
else // some day might add IPv6 here
$helohost = $client_ip;