From 72c59dd82e49da780e35fee03c28cf07bc3d62ea Mon Sep 17 00:00:00 2001 From: ccesario Date: Sat, 30 Jun 2012 09:59:41 -0300 Subject: [PATCH] Change ereg() to preg_match() function --- etc/inc/pfsense-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 8d5dac029e..71134639b1 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1632,7 +1632,7 @@ function read_header($ch, $string) { global $file_size, $fout; $length = strlen($string); $regs = ""; - ereg("(Content-Length:) (.*)", $string, $regs); + preg_match("/(Content-Length:) (.*)/", $string, $regs); if($regs[2] <> "") { $file_size = intval($regs[2]); }