Revision: 293
http://isocial.svn.sourceforge.net/isocial/?rev=293&view=rev
Author: aguidrevitch
Date: 2008-08-25 12:48:57 +0000 (Mon, 25 Aug 2008)
Log Message:
-----------
warning fixed
Modified Paths:
--------------
app/application_controller.php
Modified: app/application_controller.php
===================================================================
--- app/application_controller.php 2008-08-25 12:41:19 UTC (rev 292)
+++ app/application_controller.php 2008-08-25 12:48:57 UTC (rev 293)
@@ -193,8 +193,10 @@
$headers = array();
$lines = preg_split('/\r?\n/', $header);
foreach ($lines as $line) {
- list( $name, $value ) = preg_split('/\s*:\s*/', $line, 2);
- $headers[$name] = $value;
+ @list( $name, $value ) = preg_split('/\s*:\s*/', $line, 2);
+ if ($name && $value) {
+ $headers[$name] = $value;
+ }
}
return $headers;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|