cvs: pear /HTTP_WebDAV_Client/Client Stream.php

From: Date: Wed, 07 Apr 2004 18:00:42 +0000
Subject: cvs: pear /HTTP_WebDAV_Client/Client Stream.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-17988@lists.php.net to get a copy of this message
hholzgra Wed Apr 7 14:00:42 2004 EDT Modified files: /pear/HTTP_WebDAV_Client/Client Stream.php Log: username and password in an URL have to be encoded as '@', '/' and ':' are invalid characters in there (RFC1738 3.1) as parse_url() does not decode encoded characters when spliting an URL into parts and HTTP_Request::setAuthBasic() OTOH expects plain unencoded usernames and passwords we have to do the decoding ourselves (PEAR Bug #995) http://cvs.php.net/diff.php/pear/HTTP_WebDAV_Client/Client/Stream.php?r1=1.3&r2=1.4&ty=u Index: pear/HTTP_WebDAV_Client/Client/Stream.php diff -u pear/HTTP_WebDAV_Client/Client/Stream.php:1.3 pear/HTTP_WebDAV_Client/Client/Stream.php:1.4 --- pear/HTTP_WebDAV_Client/Client/Stream.php:1.3 Fri Dec 19 19:52:10 2003 +++ pear/HTTP_WebDAV_Client/Client/Stream.php Wed Apr 7 14:00:40 2004 @@ -757,10 +757,10 @@ // extract authentication information if (isset($url['user'])) { - $this->user = $url['user']; + $this->user = urldecode($url['user']); } if (isset($url['pass'])) { - $this->pass = $url['pass']; + $this->pass = urldecode($url['pass']); } return true;

« previous php.pear.cvs (#17988) next »