mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Change ereg() to preg_match() function
This commit is contained in:
parent
52108aca01
commit
72c59dd82e
@ -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]);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user