Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 9dcd95b

Browse files
committed
Corrected check for safe_dir OR open_basedir and not AND
1 parent c5192c8 commit 9dcd95b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpZenfolio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ public function __construct( $url = NULL, $method = 'POST', $timeout = 30 )
787787

788788
// can't use curl's followlocation in safe_mode with open_basedir, so fallback to socket for now
789789
if ( function_exists( 'curl_init' ) && ( $this->config['adapter'] == 'curl' )
790-
&& ! ( ini_get( 'safe_mode' ) && ini_get( 'open_basedir' ) ) ) {
790+
&& ! ( ini_get( 'safe_mode' ) || ini_get( 'open_basedir' ) ) ) {
791791
$this->processor = new PhpZenfolioCurlRequestProcessor();
792792
}
793793
else {

0 commit comments

Comments
 (0)