freebsd-ports/security/base/files/patch-includes__base_net.inc.php
Martin Wilke 821a625c0f - Update to 1.4.5
PR:		145635
Submitted by:	olli hauer <ohauer@gmx.de>
2010-05-09 11:22:35 +00: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];