[php] correction to PHP >= 7.1 supported UTF-8 path on Windows

This commit is contained in:
nao-pon
2017-12-06 23:36:40 +09:00
parent 353023e143
commit d406b6fa41
3 changed files with 17 additions and 7 deletions
@@ -80,6 +80,10 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
$this->options[$key] = str_replace('/', DIRECTORY_SEPARATOR, $this->options[$key]);
}
}
// PHP >= 7.1 Supports UTF-8 path on Windows
if (version_compare(PHP_VERSION, '7.1', '>=')) {
$this->options['encoding'] = '';
}
}
if (!$cwd = getcwd()) {
return $this->setError('elFinder LocalVolumeDriver requires a result of getcwd().');