瀏覽代碼

made ssl check compatible with nginx & php5-fcgi

Daniel Jost 11 年之前
父節點
當前提交
d96c1fccca
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/pico.php

+ 1 - 1
lib/pico.php

@@ -309,7 +309,7 @@ class Pico {
 	protected function get_protocol()
 	protected function get_protocol()
 	{
 	{
 		$protocol = 'http';
 		$protocol = 'http';
-		if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'){
+		if(isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on'){
 			$protocol = 'https';
 			$protocol = 'https';
 		}
 		}
 		return $protocol;
 		return $protocol;