aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2016-01-05 21:36:01 +0100
committerPim van den Berg2016-01-05 21:38:03 +0100
commitaf0adbbdfa262c3782de4d7f57e87fb7705f9397 (patch)
tree4e7f0805137dafdbfe0059bec36b9c659d4389b1
parentinc/functions: a host, pi and ti may contain colons (:) and spaces ( ) (diff)
downloadapt-panopticon_cgp-af0adbbdfa262c3782de4d7f57e87fb7705f9397.zip
apt-panopticon_cgp-af0adbbdfa262c3782de4d7f57e87fb7705f9397.tar.gz
apt-panopticon_cgp-af0adbbdfa262c3782de4d7f57e87fb7705f9397.tar.bz2
apt-panopticon_cgp-af0adbbdfa262c3782de4d7f57e87fb7705f9397.tar.xz
explicitly set Content-Type header to text/html
Closes #128
-rw-r--r--detail.php2
-rw-r--r--host.php2
-rw-r--r--index.php2
3 files changed, 6 insertions, 0 deletions
diff --git a/detail.php b/detail.php
index 3cd7155..875074b 100644
--- a/detail.php
+++ b/detail.php
@@ -5,6 +5,8 @@ require_once 'inc/functions.inc.php';
5require_once 'inc/html.inc.php'; 5require_once 'inc/html.inc.php';
6require_once 'inc/collectd.inc.php'; 6require_once 'inc/collectd.inc.php';
7 7
8header("Content-Type: text/html");
9
8# use width/height from config if nothing is given 10# use width/height from config if nothing is given
9if (empty($_GET['x'])) 11if (empty($_GET['x']))
10 $_GET['x'] = $CONFIG['detail-width']; 12 $_GET['x'] = $CONFIG['detail-width'];
diff --git a/host.php b/host.php
index 91e37f0..8c2f0a7 100644
--- a/host.php
+++ b/host.php
@@ -4,6 +4,8 @@ require_once 'conf/common.inc.php';
4require_once 'inc/html.inc.php'; 4require_once 'inc/html.inc.php';
5require_once 'inc/collectd.inc.php'; 5require_once 'inc/collectd.inc.php';
6 6
7header("Content-Type: text/html");
8
7$host = GET('h'); 9$host = GET('h');
8$plugin = GET('p'); 10$plugin = GET('p');
9 11
diff --git a/index.php b/index.php
index 94ecf80..b220241 100644
--- a/index.php
+++ b/index.php
@@ -4,6 +4,8 @@ include_once 'conf/common.inc.php';
4include_once 'inc/collectd.inc.php'; 4include_once 'inc/collectd.inc.php';
5require_once 'inc/html.inc.php'; 5require_once 'inc/html.inc.php';
6 6
7header("Content-Type: text/html");
8
7html_start(); 9html_start();
8 10
9$h = array(); 11$h = array();