BUG 6856 Error while downloading a pm library process curl_init is not definded
The validation was added
This commit is contained in:
@@ -3321,6 +3321,9 @@ class Processes {
|
||||
throw ( new Exception ("File $newfilename not opened") );
|
||||
}
|
||||
|
||||
if (!function_exists('curl_init')){
|
||||
throw ( new Exception (G::LoadTranslation('ID_CURLFUN_ISUNDEFINED')) );die();
|
||||
}
|
||||
$ch = curl_init();
|
||||
|
||||
curl_setopt($ch, CURLOPT_FILE, $out);
|
||||
|
||||
Reference in New Issue
Block a user