mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-24 20:11:38 -05:00
Correct Content-Type in customcss.php
This commit is contained in:
@@ -2,13 +2,15 @@
|
||||
|
||||
include '../pokemonshowdown.com/config/servers.inc.php';
|
||||
|
||||
header('Content-type: text/css');
|
||||
|
||||
$server = @$_REQUEST['server'];
|
||||
if (empty($PokemonServers[$server])) {
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
die('server not found');
|
||||
}
|
||||
$serverdata = $PokemonServers[$server];
|
||||
|
||||
header('Content-Type: text/css'); // the CSS file should specify a charset
|
||||
|
||||
$serverdata =& $PokemonServers[$server];
|
||||
$customcssuri = @$serverdata['customcss'];
|
||||
if (empty($customcssuri)) {
|
||||
$customcssuri = 'http://'.$serverdata['server'].':'.$serverdata['port'].'/custom.css';
|
||||
|
||||
Reference in New Issue
Block a user