summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorccesario <carloscesario@gmail.com>2012-06-30 09:59:41 -0300
committerccesario <carloscesario@gmail.com>2012-06-30 09:59:41 -0300
commit72c59dd82e49da780e35fee03c28cf07bc3d62ea (patch)
tree5e725abf28172673e9beb814d04945cdf534a09d /etc
parent52108aca0122349afb7bd0193c3c680d3a435f57 (diff)
downloadpfsense-72c59dd82e49da780e35fee03c28cf07bc3d62ea.zip
pfsense-72c59dd82e49da780e35fee03c28cf07bc3d62ea.tar.gz
Change ereg() to preg_match() function
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc2
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]);
}
OpenPOWER on IntegriCloud