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

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