From 0d5a1ba3c74894e683b8a330a96322052cb7df24 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 8 Jun 2022 15:52:27 +0200 Subject: [PATCH 1/4] rawurlencode path of files and folders --- webdav/webdav.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webdav/webdav.php b/webdav/webdav.php index 4b504bf91..8f6c1082c 100644 --- a/webdav/webdav.php +++ b/webdav/webdav.php @@ -384,8 +384,8 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server array_shift($patharr); $path = ''; foreach($patharr as $pathseg) -// $path .= '/'.rawurlencode($pathseg->getName()); - $path .= '/'.$pathseg->getName(); + $path .= '/'.rawurlencode($pathseg->getName()); +// $path .= '/'.$pathseg->getName(); if(!$path) { $path = '/'; $info["props"][] = $this->mkprop("isroot", "true"); @@ -407,8 +407,8 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server array_shift($patharr); $path = '/'; foreach($patharr as $pathseg) -// $path .= rawurlencode($pathseg->getName()).'/'; - $path .= $pathseg->getName().'/'; + $path .= rawurlencode($pathseg->getName()).'/'; +// $path .= $pathseg->getName().'/'; // $info["path"] = htmlspecialchars($path.rawurlencode($obj->getName())); if($this->useorgfilename) { /* Add the document id and version to the display name. From 6cb9556e8778ebde84291cdc483f9040009299ba Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 8 Jun 2022 15:53:26 +0200 Subject: [PATCH 2/4] add entry for 5.1.26 --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index 3e577c9c4..2ecff270e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,7 @@ - add conversion service from tiff, gif to png - do not use logger in notification service if it was not initialized - fix editing of custom date fields +- fix listing files/folders with umlauts when using webdav -------------------------------------------------------------------------------- Changes in version 5.1.25 From 3dd4fb145b935554b08f4246c789673652133430 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 8 Jun 2022 16:05:39 +0200 Subject: [PATCH 3/4] add mimetype as title attribute in folder listing --- webdav/webdav.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webdav/webdav.php b/webdav/webdav.php index 8f6c1082c..110a45675 100644 --- a/webdav/webdav.php +++ b/webdav/webdav.php @@ -572,6 +572,7 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server $displayname = $obj->getName().'/'; $filesize = 0; $mtime = $obj->getDate(); + $mimetype = ''; } else { $content = $obj->getLatestContent(); @@ -604,7 +605,7 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server printf($format, number_format($filesize), strftime("%Y-%m-%d %H:%M:%S", $mtime), - "".htmlspecialchars($displayname, ENT_QUOTES).""); + "".htmlspecialchars($displayname, ENT_QUOTES).""); } echo ""; From 83fa62a386a9c72afb8a784efbdeea445c5cd839 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 8 Jun 2022 16:08:18 +0200 Subject: [PATCH 4/4] add imagick to list of required php extensions, sqlite -> sqlite3 --- views/bootstrap/class.Info.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.Info.php b/views/bootstrap/class.Info.php index 17d36a385..e7623c98a 100644 --- a/views/bootstrap/class.Info.php +++ b/views/bootstrap/class.Info.php @@ -111,7 +111,7 @@ class SeedDMS_View_Info extends SeedDMS_Theme_Style { echo "".getMLText("name"); echo "\n"; echo "\n\n\n"; - $requiredext = array('zip', 'xml', 'xsl', 'json', 'intl', 'fileinfo', 'mbstring', 'curl', 'sqlite'); + $requiredext = array('zip', 'xml', 'xsl', 'json', 'intl', 'fileinfo', 'mbstring', 'curl', 'sqlite3', 'imagick'); foreach(array_diff($requiredext, $phpextensions) as $extname) echo "".$extname.""."\n"; echo "\n\n";