opnsense-ports/security/base/files/patch-includes__base_net.inc.php
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
575 B
PHP

--- ./includes/base_net.inc.php.orig 2010-03-05 16:06:18.000000000 +0100
+++ ./includes/base_net.inc.php 2010-04-11 23:52:13.000000000 +0200
@@ -391,7 +391,7 @@
$line = explode(" ", $response_l[$i]);
for ($j=0; $j < sizeof($line); $j++ )
{
- if ( eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $line[$j]) )
+ if ( preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i", $line[$j]) )
{
if ( $email == "" )
$email = $line[$j];