X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=extlib%2FHTTP%2FRequest2%2FMultipartBody.php;h=a7bd948bafe4e90bc7295b8f83e7ac64dff6a857;hb=ce37edc1b0bfc6e8fc31cd1a1a53dca99aa21e7e;hp=d8afd8344ced33963714a68889df0e50cb2b99ee;hpb=a42e128c1532c45fd930d98c985f9a8d98ff6868;p=quix0rs-gnu-social.git diff --git a/extlib/HTTP/Request2/MultipartBody.php b/extlib/HTTP/Request2/MultipartBody.php index d8afd8344c..a7bd948baf 100644 --- a/extlib/HTTP/Request2/MultipartBody.php +++ b/extlib/HTTP/Request2/MultipartBody.php @@ -6,7 +6,7 @@ * * LICENSE: * - * Copyright (c) 2008, 2009, Alexey Borzov + * Copyright (c) 2008-2011, Alexey Borzov * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -37,7 +37,7 @@ * @package HTTP_Request2 * @author Alexey Borzov * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: MultipartBody.php 287306 2009-08-14 15:22:52Z avb $ + * @version SVN: $Id: MultipartBody.php 308322 2011-02-14 13:58:03Z avb $ * @link http://pear.php.net/package/HTTP_Request2 */ @@ -50,7 +50,7 @@ * @category HTTP * @package HTTP_Request2 * @author Alexey Borzov - * @version Release: 0.4.1 + * @version Release: 2.0.0RC1 * @link http://tools.ietf.org/html/rfc1867 */ class HTTP_Request2_MultipartBody @@ -172,7 +172,7 @@ class HTTP_Request2_MultipartBody while ($length > 0 && $this->_pos[0] <= $paramCount + $uploadCount) { $oldLength = $length; if ($this->_pos[0] < $paramCount) { - $param = sprintf($this->_headerParam, $boundary, + $param = sprintf($this->_headerParam, $boundary, $this->_params[$this->_pos[0]][0]) . $this->_params[$this->_pos[0]][1] . "\r\n"; $ret .= substr($param, $this->_pos[1], $length);