We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e781bbd + df7f1b3 commit cdccc18Copy full SHA for cdccc18
src/JiraClient.php
@@ -279,7 +279,10 @@ private function createUploadHandle($url, $upload_file)
279
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $this->getConfiguration()->isCurlOptSslVerifyHost());
280
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->getConfiguration()->isCurlOptSslVerifyPeer());
281
282
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
+ // curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); cannot be activated when an open_basedir is set
283
+ if (!function_exists('ini_get') || !ini_get('open_basedir')){
284
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
285
+ }
286
curl_setopt($ch, CURLOPT_HTTPHEADER,
287
array(
288
'Accept: */*',
0 commit comments