mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Fix for bug #48071 (ereg to preg), patch by kalle
This commit is contained in:
@@ -39,7 +39,7 @@ function posttohost($url, $data)
|
||||
|
||||
// Read the first line of data, only accept if 200 OK is sent
|
||||
$line = fgets($fp, 1024);
|
||||
if (!eregi("^HTTP/1\\.. 200", $line)) { return; }
|
||||
if (!preg_match('#^HTTP/1\\.. 200#', $line)) { return; }
|
||||
|
||||
// Put everything, except the headers to $results
|
||||
$results = ""; $inheader = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user