rules: fix HTTPS variable not set for some servers

Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
Beta Soft 2020-04-05 01:22:56 +08:00
parent 2b34f5ec82
commit 55118d7706
No known key found for this signature in database
GPG Key ID: 180A31AB98D5C156

View File

@ -124,7 +124,7 @@ class ClientController extends Controller
// Subscription link
$subsURL = 'http';
if ($_SERVER['HTTPS'] == 'on') {
if (isset( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) == 'on') {
$subsURL .= 's';
}
$subsURL .= '://';