CodeIgniter-Chinese / CodeIgniter

开源 PHP 框架 CodeIgniter 中国社区分支
http://codeigniter.org.cn/
MIT License
65 stars 26 forks source link

$_SERVER['HTTPS'] #4

Closed hust419 closed 10 years ago

hust419 commented 10 years ago

$base_url = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http';
but,my server infomation is : 'HTTPS' => string '' (length=0) so,The base url is wrong ! I replace it with :
$base_url = !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http';