Skip to content

Commit

Permalink
Merge pull request #35 from MichaelJ2324/master
Browse files Browse the repository at this point in the history
SUPP-399
  • Loading branch information
geraldclark committed Jan 19, 2018
2 parents a3efed9 + ac1cdeb commit 2d75cae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*.iml
.idea/
vendor/
coverage/
docs/

composer.lock
4 changes: 2 additions & 2 deletions src/Endpoint/POST/ModuleRecordFileField.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ protected function setFileFieldValue($value)
{
if (version_compare(PHP_VERSION, '5.5.0') >= 0){
if (!($value instanceof \CURLFile)){
$value = str_replace("@",'',$value);
$value = ltrim($value,"@");
$value = new \CURLFile($value);
}
} else {
if (strpos($value, '@') === false) {
if (strpos($value, '@') !== 0) {
$value = '@'.$value;
}
}
Expand Down

0 comments on commit 2d75cae

Please sign in to comment.