cvs: pear /HTTP_Request Request.php
| From: | Alexey Borzov | Date: | Tue, 24 Oct 2006 20:19:08 +0000 |
| Subject: | cvs: pear /HTTP_Request Request.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42799@lists.php.net to get a copy of this message | ||
avb Tue Oct 24 20:19:08 2006 UTC
Modified files:
/pear/HTTP_Request Request.php
Log:
Fixed bug #8214 (should ignore bogus HTTP headers)
http://cvs.php.net/viewvc.cgi/pear/HTTP_Request/Request.php?r1=1.49&r2=1.50&diff_format=u
Index: pear/HTTP_Request/Request.php
diff -u pear/HTTP_Request/Request.php:1.49 pear/HTTP_Request/Request.php:1.50
--- pear/HTTP_Request/Request.php:1.49 Tue Oct 24 20:02:00 2006
+++ pear/HTTP_Request/Request.php Tue Oct 24 20:19:08 2006
@@ -32,7 +32,7 @@
// | Author: Richard Heyes <richard@phpguru.org> |
// +-----------------------------------------------------------------------+
//
-// $Id: Request.php,v 1.49 2006/10/24 20:02:00 avb Exp $
+// $Id: Request.php,v 1.50 2006/10/24 20:19:08 avb Exp $
//
// HTTP_Request Class
//
@@ -1182,6 +1182,9 @@
*/
function _processHeader($header)
{
+ if (false === strpos($header, ':')) {
+ return;
+ }
list($headername, $headervalue) = explode(':', $header, 2);
$headername = strtolower($headername);
$headervalue = ltrim($headervalue);