skyzyx
4/21/2011 - 11:09 PM

opebn_basedir patch

opebn_basedir patch

--- production/lib/requestcore/requestcore.class.php	2011-04-05 15:56:58.000000000 -0700
+++ development/lib/requestcore/requestcore.class.php	2011-04-21 16:05:02.000000000 -0700
@@ -613,11 +613,11 @@
 		if ($this->debug_mode)
 		{
 			curl_setopt($curl_handle, CURLOPT_VERBOSE, true);
 		}
 
-		if (!ini_get('safe_mode'))
+		if (!ini_get('safe_mode') && !ini_get('open_basedir'))
 		{
 			curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, true);
 		}
 
 		// Enable a proxy connection if requested.