cvs: pear /HTTP_WebDAV_Client/Client Stream.php
| From: | Hartmut Holzgraefe | Date: | Wed, 01 Mar 2006 15:44:03 +0000 |
| Subject: | cvs: pear /HTTP_WebDAV_Client/Client Stream.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38792@lists.php.net to get a copy of this message | ||
hholzgra Wed Mar 1 15:44:03 2006 UTC
Modified files:
/pear/HTTP_WebDAV_Client/Client Stream.php
Log:
fixed off-by-one error (PEAR bug #6407)
http://cvs.php.net/viewcvs.cgi/pear/HTTP_WebDAV_Client/Client/Stream.php?r1=1.6&r2=1.7&diff_format=u
Index: pear/HTTP_WebDAV_Client/Client/Stream.php
diff -u pear/HTTP_WebDAV_Client/Client/Stream.php:1.6 pear/HTTP_WebDAV_Client/Client/Stream.php:1.7
--- pear/HTTP_WebDAV_Client/Client/Stream.php:1.6 Sun Jan 9 11:58:11 2005
+++ pear/HTTP_WebDAV_Client/Client/Stream.php Wed Mar 1 15:44:03 2006
@@ -234,7 +234,7 @@
{
// do some math
$start = $this->position;
- $end = $start+$count;
+ $end = $start + $count - 1;
// create a GET request with a range
$req = &new HTTP_Request($this->url);