Merge pull request #162 from betaxab/patch-1

rules: fix HTTPS variable not set for some servers
This commit is contained in:
tokumeikoi 2020-04-05 15:12:35 +08:00 committed by GitHub
commit 7770bf6b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 .= '://';