1
0
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:
Philip Olson
2009-05-03 05:17:57 +00:00
parent 06a06b561a
commit 1d7d544191

View File

@@ -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;