mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Thanks to Rektile404 for reporting this bug! https://github.com/rektile
This commit is contained in:
parent
64e79f49eb
commit
f12dec091d
|
|
@ -14,7 +14,7 @@ if (preg_match('/^([a-z0-9-_\.]*?)\.psim\.us$/', $host, $m)) {
|
|||
die; // not authorised
|
||||
}
|
||||
|
||||
$protocol = @$_REQUEST['protocol'] ?? 'http:';
|
||||
$protocol = @$_REQUEST['protocol'] === 'https:' ? 'https:' : 'http:';
|
||||
$portType = ($protocol === 'http:' ? 'port' : 'httpsport');
|
||||
|
||||
if ($config['host'] !== 'showdown') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user