From 7ba6a06300f150bbd2818afb01070203a6ce0549 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Mon, 6 Jan 2014 15:11:47 +0400 Subject: [PATCH] Fixed code style and comparison --- framework/yii/web/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/web/Request.php b/framework/yii/web/Request.php index 8a980d5..0518529 100644 --- a/framework/yii/web/Request.php +++ b/framework/yii/web/Request.php @@ -668,8 +668,8 @@ class Request extends \yii\base\Request */ public function getIsSecureConnection() { - return isset($_SERVER['HTTPS']) && (strcasecmp($_SERVER['HTTPS'],'on') || $_SERVER['HTTPS'] == 1) - || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strcasecmp($_SERVER['HTTP_X_FORWARDED_PROTO'],'https'); + return isset($_SERVER['HTTPS']) && (strcasecmp($_SERVER['HTTPS'], 'on') === 0 || $_SERVER['HTTPS'] == 1) + || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strcasecmp($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https'); } /**