Skip to content

Commit

Permalink
Merge remote-tracking branch 'github.com/kkuuko/master' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
japatel committed Feb 26, 2018
2 parents f8ab5ca + 787f869 commit 3720e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Braintree/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function prepareMultipart($ch, $requestBody, $file, $boundary) {
}

// build file parameter
$filePath = call_user_func("end", explode(DIRECTORY_SEPARATOR, $filePath));
$filePath = end(explode(DIRECTORY_SEPARATOR, $filePath));
$filePath = str_replace($disallow, "_", $filePath);
$body[] = implode("\r\n", [
"Content-Disposition: form-data; name=\"file\"; filename=\"{$filePath}\"",
Expand Down

0 comments on commit 3720e06

Please sign in to comment.