aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf
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 /conf
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 'conf')
-rw-r--r--conf/common.inc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/conf/common.inc.php b/conf/common.inc.php
index c4884d6..165c73f 100644
--- a/conf/common.inc.php
+++ b/conf/common.inc.php
@@ -3,6 +3,4 @@
3require_once 'config.php'; 3require_once 'config.php';
4 4
5$CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']); 5$CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']);
6$CONFIG['weburl'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']); 6$CONFIG['weburl'] = preg_replace('/(?<=\/)[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']);
7
8?>