From 1c27ab9074134641da9a15acbcdc178779d93bf4 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 6 Oct 2013 21:00:29 +0000 Subject: [PATCH] postfixadmin-cli.php: - __initConstants(): substr() is a bad idea to find the parent directory. Use dirname() instead. git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1527 a1433add-5e2c-0410-b055-b7f2511e0802 --- scripts/postfixadmin-cli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/postfixadmin-cli.php b/scripts/postfixadmin-cli.php index 0b42ee68..58294ec2 100644 --- a/scripts/postfixadmin-cli.php +++ b/scripts/postfixadmin-cli.php @@ -147,7 +147,7 @@ class PostfixAdmin { define('DS', DIRECTORY_SEPARATOR); define('PHP5', (PHP_VERSION >= 5)); define('CORE_INCLUDE_PATH', dirname(__FILE__)); - define('CORE_PATH', substr(CORE_INCLUDE_PATH, 0, -8) ); + define('CORE_PATH', dirname(CORE_INCLUDE_PATH) ); # CORE_INCLUDE_PATH/../ if(!defined('POSTFIXADMIN')) { # already defined if called from setup.php define('POSTFIXADMIN', 1); # checked in included files