Skip to content

Commit

Permalink
Remove s3.amazonaws.com from valid domains. Remove _verifyUri from ge…
Browse files Browse the repository at this point in the history
…tFile as it is not necessary
  • Loading branch information
joannasese committed Jan 9, 2020
1 parent 14495d8 commit fbe5814
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/recurly/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Recurly_Client
/**
* Valid Recurly domains
*/
private static $valid_domains = ["recurly.com", "s3.amazonaws.com"];
private static $valid_domains = ["recurly.com"];

/**
* Base API URL
Expand Down Expand Up @@ -283,8 +283,6 @@ private function _raiseCurlError($errorNumber, $message)
* @throws Recurly_Error
*/
public function getFile($uri, $file_pointer) {
$this->_verifyUri($uri);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
Expand Down

0 comments on commit fbe5814

Please sign in to comment.