diff options
author | Pim van den Berg | 2011-10-08 11:29:11 +0200 |
---|---|---|
committer | Pim van den Berg | 2011-10-08 11:29:11 +0200 |
commit | a652177a65cc17c8dddaa739d30ce40dc20d68a9 (patch) | |
tree | e7b7dd3b4ef84460b398ec5abc5886a78ffeeac6 /detail.php | |
parent | plugin/interface: fix empty instance descr. for collectd 5 (diff) | |
download | apt-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.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -23,7 +23,7 @@ $seconds = GET('s'); | |||
23 | html_start(); | 23 | html_start(); |
24 | 24 | ||
25 | printf('<h2><a href="%s">%s</a></h2>'."\n", | 25 | printf('<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; | |||
40 | print "<ul>\n"; | 40 | print "<ul>\n"; |
41 | foreach($term as $key => $s) { | 41 | foreach($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 | } |
46 | print "</ul>\n"; | 46 | print "</ul>\n"; |
@@ -53,7 +53,7 @@ if(!$plugins) { | |||
53 | } | 53 | } |
54 | 54 | ||
55 | # show graph | 55 | # show graph |
56 | printf('<img src="%s/%s">'."\n", $CONFIG['weburl'], build_url('graph.php', $_GET)); | 56 | printf('<img src="%s%s">'."\n", $CONFIG['weburl'], build_url('graph.php', $_GET)); |
57 | 57 | ||
58 | html_end(); | 58 | html_end(); |
59 | 59 | ||