diff options
author | ccesario <carloscesario@gmail.com> | 2012-06-30 09:59:41 -0300 |
---|---|---|
committer | ccesario <carloscesario@gmail.com> | 2012-06-30 09:59:41 -0300 |
commit | 72c59dd82e49da780e35fee03c28cf07bc3d62ea (patch) | |
tree | 5e725abf28172673e9beb814d04945cdf534a09d | |
parent | 52108aca0122349afb7bd0193c3c680d3a435f57 (diff) | |
download | pfsense-72c59dd82e49da780e35fee03c28cf07bc3d62ea.zip pfsense-72c59dd82e49da780e35fee03c28cf07bc3d62ea.tar.gz |
Change ereg() to preg_match() function
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 8d5dac0..7113463 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]); } |