Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2018-04-03 06:17:42 +02:00
commit 28e65a1520
3 changed files with 4 additions and 3 deletions

View File

@ -112,6 +112,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

@ -61,7 +61,7 @@ class SeedDMS_Controller_UpdateDocument extends SeedDMS_Controller_Common {
$result = $this->callHook('updateDocument');
if($result === null) {
$filesize = SeedDMS_Core_File::fileSize($userfiletmp);
$contentResult=$document->addContent($comment, $user, $userfiletmp, basename($userfilename), $filetype, $userfiletype, $reviewers, $approvers, $version=0, $attributes, $workflow, $initialdocumentstatus);
$contentResult=$document->addContent($comment, $user, $userfiletmp, utf8_basename($userfilename), $filetype, $userfiletype, $reviewers, $approvers, $version=0, $attributes, $workflow, $initialdocumentstatus);
if ($this->hasParam('expires')) {
if($document->setExpires($this->getParam('expires'))) {

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))