From f29fb40ba7ee1e8a4e7b3af70dfc862f4904bd75 Mon Sep 17 00:00:00 2001 From: ngleader Date: Thu, 8 Mar 2012 06:39:34 +0000 Subject: [PATCH] Issue 579 fixed a problem of chmod command on windows git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10392 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/autoinstall/autoinstall.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/autoinstall/autoinstall.lib.php b/modules/autoinstall/autoinstall.lib.php index 7509aca6f..42ffe36a5 100644 --- a/modules/autoinstall/autoinstall.lib.php +++ b/modules/autoinstall/autoinstall.lib.php @@ -373,7 +373,7 @@ return new Object(-1, "msg_make_directory_failed"); } - if(!stristr(PHP_OS, 'win')) + if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { if (function_exists('ftp_chmod')) { if(!ftp_chmod($this->connection, 0755, $ftp_path))