@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | |
616 | 616 | // curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set |
617 | 617 | if (!function_exists('ini_get') || !ini_get('open_basedir')) { |
618 | - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |
|
618 | + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |
|
619 | 619 | } |
620 | 620 | |
621 | 621 | curl_setopt($ch, CURLOPT_HTTPHEADER, |
@@ -667,7 +667,7 @@ discard block |
||
667 | 667 | return $response; |
668 | 668 | } |
669 | 669 | |
670 | - /** |
|
670 | + /** |
|
671 | 671 | * setting cookie file path. |
672 | 672 | * |
673 | 673 | * @param $cookieFile |
@@ -651,7 +651,7 @@ |
||
651 | 651 | $this->http_response = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
652 | 652 | |
653 | 653 | header('Content-Type: application/octet-stream'); |
654 | - header('Content-Disposition: attachment; filename=' . basename($url)); |
|
654 | + header('Content-Disposition: attachment; filename='.basename($url)); |
|
655 | 655 | header('Content-Transfer-Encoding: binary'); |
656 | 656 | |
657 | 657 | curl_close($ch); |