Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
eusonlito committed Jul 9, 2016
2 parents 108c266 + d56d5a2 commit b3ac5c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Redsys/Tpv/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ public function connect()

curl_setopt($this->connect, CURLOPT_HEADER, false);
curl_setopt($this->connect, CURLOPT_HTTPHEADER, $header);
curl_setopt($this->connect, CURLOPT_FOLLOWLOCATION, true);

if (!ini_get('open_basedir') && !filter_var(ini_get('safe_mode'), FILTER_VALIDATE_BOOLEAN)) {
curl_setopt($this->connect, CURLOPT_FOLLOWLOCATION, true);
}

curl_setopt($this->connect, CURLOPT_AUTOREFERER, true);
curl_setopt($this->connect, CURLOPT_COOKIEJAR, $this->settings['cookie']);
curl_setopt($this->connect, CURLOPT_COOKIEFILE, $this->settings['cookie']);
Expand Down

0 comments on commit b3ac5c0

Please sign in to comment.