cvs: pear /HTTP HTTP.php
| From: | Michael Wallner | Date: | Mon, 08 Nov 2004 15:29:06 +0000 |
| Subject: | cvs: pear /HTTP HTTP.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-25772@lists.php.net to get a copy of this message | ||
mike Mon Nov 8 10:29:06 2004 EDT
Modified files:
/pear/HTTP HTTP.php
Log:
* replace "new lines" with space instead of empty string
http://cvs.php.net/diff.php/pear/HTTP/HTTP.php?r1=1.36&r2=1.37&ty=u
Index: pear/HTTP/HTTP.php
diff -u pear/HTTP/HTTP.php:1.36 pear/HTTP/HTTP.php:1.37
--- pear/HTTP/HTTP.php:1.36 Mon Oct 11 06:24:11 2004
+++ pear/HTTP/HTTP.php Mon Nov 8 10:29:02 2004
@@ -16,7 +16,7 @@
// | Michael Wallner <mike@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: HTTP.php,v 1.36 2004/10/11 10:24:11 mike Exp $
+// $Id: HTTP.php,v 1.37 2004/11/08 15:29:02 mike Exp $
/**
* HTTP
@@ -27,7 +27,7 @@
* @category HTTP
* @license PHP License
* @access public
- * @version $Revision: 1.36 $
+ * @version $Revision: 1.37 $
*/
class HTTP
{
@@ -263,7 +263,7 @@
function absoluteURI($url = null, $protocol = null, $port = null)
{
// filter CR/LF
- $url = str_replace(array("\r", "\n"), '', $url);
+ $url = str_replace(array("\r", "\n"), ' ', $url);
// Mess around with already absolute URIs
if (preg_match('!^([a-z0-9]+)://!i', $url)) {