From b54350ff2f09d8202cf2931895bba8dced4dcf21 Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Sun, 13 Apr 2014 13:58:37 +0400 Subject: [PATCH] Fix warning of open_basedir --- lib/IntaroCrm/RestApi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/IntaroCrm/RestApi.php b/lib/IntaroCrm/RestApi.php index 047673a..1ca5373 100644 --- a/lib/IntaroCrm/RestApi.php +++ b/lib/IntaroCrm/RestApi.php @@ -557,7 +557,7 @@ class RestApi $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FAILONERROR, FALSE); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects + //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a variable curl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 30s @@ -598,4 +598,4 @@ class RestApi return reset($result); } -} \ No newline at end of file +}