From f130f9116e1e9ee9735d8026aa5242fc9daceecb Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 7 Feb 2014 14:43:51 +0100 Subject: Fix directories check in Installer on Windows (#1489576) Added rcube_utils::is_absolute_path() method --- installer/test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/test.php b/installer/test.php index f834308ad..5d28d5f57 100644 --- a/installer/test.php +++ b/installer/test.php @@ -91,7 +91,7 @@ if ($RCI->config['log_driver'] != 'syslog') $dirs[] = $RCI->config['log_dir'] ? $RCI->config['log_dir'] : 'logs'; foreach ($dirs as $dir) { - $dirpath = $dir[0] == '/' ? $dir : INSTALL_PATH . $dir; + $dirpath = rcube_utils::is_absolute_path($dir) ? $dir : INSTALL_PATH . $dir; if (is_writable(realpath($dirpath))) { $RCI->pass($dir); $pass = true; -- cgit v1.2.3