cvs: phpweb /include posttohost.inc

From: Date: Sun, 03 May 2009 05:17:57 +0000
Subject: cvs: phpweb /include posttohost.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-4610@lists.php.net to get a copy of this message
philip Sun May 3 05:17:57 2009 UTC Modified files: /phpweb/include posttohost.inc Log: Fix for bug #48071 (ereg to preg), patch by kalle http://cvs.php.net/viewvc.cgi/phpweb/include/posttohost.inc?r1=1.4&r2=1.5&diff_format=u Index: phpweb/include/posttohost.inc diff -u phpweb/include/posttohost.inc:1.4 phpweb/include/posttohost.inc:1.5 --- phpweb/include/posttohost.inc:1.4 Sun Jul 25 10:07:22 2004 +++ phpweb/include/posttohost.inc Sun May 3 05:17:57 2009 @@ -1,6 +1,6 @@ <?php -// $Id: posttohost.inc,v 1.4 2004/07/25 10:07:22 goba Exp $ +// $Id: posttohost.inc,v 1.5 2009/05/03 05:17:57 philip Exp $ /* This code is used to post data to the central server which @@ -39,7 +39,7 @@ // 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;

« previous php.webmaster (#4610) next »