Change ereg() to preg_match() function

This commit is contained in:
ccesario 2012-06-30 09:59:41 -03:00
parent 52108aca01
commit 72c59dd82e

View File

@ -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]);
}