{"action":"created","issue":{"url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/829","labels_url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/829/labels{/name}","comments_url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/829/comments","events_url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/829/events","html_url":"https://github.com/GetSimpleCMS/GetSimpleCMS/issues/829","id":35523672,"number":829,"title":"curl special protections","user":{"login":"tablatronix","id":807787,"avatar_url":"https://avatars.githubusercontent.com/u/807787?v=3","gravatar_id":"","url":"https://api.github.com/users/tablatronix","html_url":"https://github.com/tablatronix","followers_url":"https://api.github.com/users/tablatronix/followers","following_url":"https://api.github.com/users/tablatronix/following{/other_user}","gists_url":"https://api.github.com/users/tablatronix/gists{/gist_id}","starred_url":"https://api.github.com/users/tablatronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tablatronix/subscriptions","organizations_url":"https://api.github.com/users/tablatronix/orgs","repos_url":"https://api.github.com/users/tablatronix/repos","events_url":"https://api.github.com/users/tablatronix/events{/privacy}","received_events_url":"https://api.github.com/users/tablatronix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/labels/Feature","name":"Feature","color":"4bb14b"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-06-11T20:31:46Z","updated_at":"2015-04-27T17:04:18Z","closed_at":null,"body":"CURLOPT_FOLLOWLOCATION will fail to set if open_base_dir or safe mode is on.\r\n\r\nThis will also cause a failure of any setting after it when using `curl_setopt_array` \r\nwhich returns false immediately if a setting fails to set, preventing any following settings to apply.\r\n\r\n>Returns TRUE if all options were successfully set. If an option could not be successfully set, FALSE is immediately returned, ignoring any future options in the options array.\r\nhttp://www.php.net//manual/en/function.curl-setopt-array.php\r\n\r\nAlways do error checking on `curl_setopt_array` returns.\r\nand do pre flight checking on availability of followlocation before checking a known redirected api or url."},"comment":{"url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/comments/96741817","html_url":"https://github.com/GetSimpleCMS/GetSimpleCMS/issues/829#issuecomment-96741817","issue_url":"https://api.github.com/repos/GetSimpleCMS/GetSimpleCMS/issues/829","id":96741817,"user":{"login":"tablatronix","id":807787,"avatar_url":"https://avatars.githubusercontent.com/u/807787?v=3","gravatar_id":"","url":"https://api.github.com/users/tablatronix","html_url":"https://github.com/tablatronix","followers_url":"https://api.github.com/users/tablatronix/followers","following_url":"https://api.github.com/users/tablatronix/following{/other_user}","gists_url":"https://api.github.com/users/tablatronix/gists{/gist_id}","starred_url":"https://api.github.com/users/tablatronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tablatronix/subscriptions","organizations_url":"https://api.github.com/users/tablatronix/orgs","repos_url":"https://api.github.com/users/tablatronix/repos","events_url":"https://api.github.com/users/tablatronix/events{/privacy}","received_events_url":"https://api.github.com/users/tablatronix/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T17:04:18Z","updated_at":"2015-04-27T17:04:18Z","body":"we use curl_setopt not curl_setopt_array, so might not be an issue\r\n"}}