summaryrefslogtreecommitdiff
path: root/installer/test.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-02-07 14:43:51 +0100
committerAleksander Machniak <alec@alec.pl>2014-02-07 14:43:51 +0100
commit517c9f9a8dba8e83eaa37a7660f434102e967a77 (patch)
tree0cbde4da4a40cabd1d4e44ca034176c74006bd4e /installer/test.php
parente8dd47fb94ae967a78e5c687fb72d1096d19330b (diff)
Fix directories check in Installer on Windows (#1489576)
Added rcube_utils::is_absolute_path() method
Diffstat (limited to 'installer/test.php')
-rw-r--r--installer/test.php2
1 files changed, 1 insertions, 1 deletions
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;