Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rsedykh committed Feb 8, 2022
2 parents aa848dd + b92f466 commit b320678
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ The format is based now on [Keep a
Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.1.2]
## [3.2.1]
### Secure delivery image processing fix
- Resolved issue with invalid signed urls being generated for image transformations.

## [3.2.0]
### Secure Webhooks
- Each webhook payload now can be [signed with a secret](https://uploadcare.com/docs/security/secure-webhooks/) to ensure that the request comes from the expected sender.
- Fix some minor issues.
Expand Down
4 changes: 3 additions & 1 deletion src/Apis/FileApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ private function checkTransformationUrl(string $url): string
throw new InvalidArgumentException('URL must contain the file UUID');
}

return $url;
// Remove starting and end slash from the uuid with transformation string. The generator url template will
// already append these.
return trim(rtrim($url, '/'), '/');
}

/**
Expand Down

0 comments on commit b320678

Please sign in to comment.