use utf8_basename() instead of php basename()

This commit is contained in:
Uwe Steinmann 2018-03-31 14:38:27 +02:00
parent d017726984
commit 5c48206311
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@
- check if converters are set in out/out.ViewDocument.php at all (Closes #394)
- do not remove user when transfering objects
- do not periodically count tasks if task list in menu is turned off
- use utf8_basename() in op.ImportFS.php
--------------------------------------------------------------------------------
Changes in version 5.1.6

View File

@ -57,7 +57,7 @@ function import_folder($dirname, $folder) { /* {{{ */
$path = $dirname.'/'.$entry;
if($entry != '.' && $entry != '..' && $entry != '.svn') {
if(is_file($path)) {
$name = basename($path);
$name = utf8_basename($path);
$filetmp = $path;
$reviewers = array();
@ -86,7 +86,7 @@ function import_folder($dirname, $folder) { /* {{{ */
}
set_time_limit(30);
} elseif(is_dir($path)) {
$name = basename($path);
$name = utf8_basename($path);
if($newfolder = $folder->addSubFolder($name, '', $user, $sequence)) {
$foldercount++;
if(!import_folder($path, $newfolder))