Upgrade LBCAlerte to version 3.3

Add upgrade script
This commit is contained in:
Jimmy Monin
2016-11-26 19:19:16 +01:00
parent a7c054b535
commit 58ffd500e6
89 changed files with 6436 additions and 758 deletions

View File

@ -56,6 +56,12 @@ class HttpClientCurl extends HttpClientAbstract
$body = curl_exec($this->_resource);
$this->_respond_code = curl_getinfo($this->_resource, CURLINFO_HTTP_CODE);
$content_type = curl_getinfo($this->_resource, CURLINFO_CONTENT_TYPE);
if (preg_match("#.*charset=(.+)#ims", $content_type, $m)) {
$charset = trim($m[1], " '\"");
$body = iconv($charset, "utf-8", $body);
}
if ($this->_respond_code == 301 || $this->_respond_code == 302) {
$redirect = curl_getinfo($this->_resource, CURLINFO_REDIRECT_URL);
if ($redirect) {