mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-20 01:51:42 -05:00
Fix minor error when Referer header not sent
This commit is contained in:
@@ -11,7 +11,7 @@ error_reporting(E_ALL);
|
||||
|
||||
if (@$_GET['act'] === 'dlteam') {
|
||||
header("Content-Type: text/plain");
|
||||
if (substr($_SERVER['HTTP_REFERER'], 0, 32) !== 'https://play.pokemonshowdown.com') {
|
||||
if (substr(@$_SERVER['HTTP_REFERER'], 0, 32) !== 'https://play.pokemonshowdown.com') {
|
||||
// since this is only to support Chrome on HTTPS, we can get away with a very specific referer check
|
||||
die("access denied");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user