aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/detail.php
diff options
context:
space:
mode:
authorPim van den Berg2011-10-08 11:29:11 +0200
committerPim van den Berg2011-10-08 11:29:11 +0200
commita652177a65cc17c8dddaa739d30ce40dc20d68a9 (patch)
treee7b7dd3b4ef84460b398ec5abc5886a78ffeeac6 /detail.php
parentplugin/interface: fix empty instance descr. for collectd 5 (diff)
downloadapt-panopticon_cgp-a652177a65cc17c8dddaa739d30ce40dc20d68a9.zip
apt-panopticon_cgp-a652177a65cc17c8dddaa739d30ce40dc20d68a9.tar.gz
apt-panopticon_cgp-a652177a65cc17c8dddaa739d30ce40dc20d68a9.tar.bz2
apt-panopticon_cgp-a652177a65cc17c8dddaa739d30ce40dc20d68a9.tar.xz
include trailing slash in config weburl variable
When running CGP in the root, the header didn't link to the overview page because the href was empty. Reported-by: Nikoli <Nikoli@lavabit.com>
Diffstat (limited to 'detail.php')
-rw-r--r--detail.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/detail.php b/detail.php
index e9e80a0..a7b2cd4 100644
--- a/detail.php
+++ b/detail.php
@@ -23,7 +23,7 @@ $seconds = GET('s');
23html_start(); 23html_start();
24 24
25printf('<h2><a href="%s">%s</a></h2>'."\n", 25printf('<h2><a href="%s">%s</a></h2>'."\n",
26 $CONFIG['weburl'].'/host.php?h='.htmlentities($host), $host 26 $CONFIG['weburl'].'host.php?h='.htmlentities($host), $host
27); 27);
28 28
29$term = array( 29$term = array(
@@ -40,7 +40,7 @@ $args = $_GET;
40print "<ul>\n"; 40print "<ul>\n";
41foreach($term as $key => $s) { 41foreach($term as $key => $s) {
42 $args['s'] = $s; 42 $args['s'] = $s;
43 printf('<li><a href="%s/%s">%s</a></li>'."\n", 43 printf('<li><a href="%s%s">%s</a></li>'."\n",
44 $CONFIG['weburl'], build_url('detail.php', $args), $key); 44 $CONFIG['weburl'], build_url('detail.php', $args), $key);
45} 45}
46print "</ul>\n"; 46print "</ul>\n";
@@ -53,7 +53,7 @@ if(!$plugins) {
53} 53}
54 54
55# show graph 55# show graph
56printf('<img src="%s/%s">'."\n", $CONFIG['weburl'], build_url('graph.php', $_GET)); 56printf('<img src="%s%s">'."\n", $CONFIG['weburl'], build_url('graph.php', $_GET));
57 57
58html_end(); 58html_end();
59 59