Skip to content

Commit

Permalink
Fixing the validation of presigned URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
boogie committed Mar 12, 2015
1 parent 9a20144 commit cc34e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Escher.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,10 +716,10 @@ private function stripAuthParams(EscherRequestHelper $helper, $vendorKey)
$query = array();
foreach ($params as $key => $value) {
if ($key != 'X-' . $vendorKey . '-Signature') {
$query[] = $key . '=' . $value;
$query[$key] = $value;
}
}
return "{$parts['scheme']}://{$parts['host']}{$parts['path']}" . (empty($query) ? '' : '?' . implode('&', $query));
return "{$parts['scheme']}://{$parts['host']}{$parts['path']}" . (empty($query) ? '' : '?' . http_build_query($query));
}

private function getExpires()
Expand Down

0 comments on commit cc34e12

Please sign in to comment.