diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-07 05:06:39 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-07 05:06:39 +0400 |
commit | 5757dae69e76e9bc76b81f1be743143981031bc2 (patch) | |
tree | 2190f965b53a66ff2b7174d7a661cfa2fca93d87 /core | |
parent | ea032858c39a3b545e9fa3dc986bf5a974089577 (diff) |
Fixes #4957 On synology NAS devices, do not use CLI multi code
Diffstat (limited to 'core')
-rw-r--r-- | core/CliMulti/Process.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/CliMulti/Process.php b/core/CliMulti/Process.php index 88f157cb8f..7a1ce72d76 100644 --- a/core/CliMulti/Process.php +++ b/core/CliMulti/Process.php @@ -146,6 +146,10 @@ class Process return false; } + if (self::isSystemNotSupported()) { + return false; + } + if (self::shellExecFunctionIsDisabled()) { return false; } @@ -157,6 +161,15 @@ class Process return false; } + private static function isSystemNotSupported() + { + $uname = php_uname(); + if(strpos($uname, 'synology') !== false) { + return true; + } + return false; + } + private static function shellExecFunctionIsDisabled() { $command = 'shell_exec'; |