Skip to content

Commit 1729ab8

Browse files
committed
1.1.201
1 parent 6e73886 commit 1729ab8

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

FileSystem/DavFolder.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class DavFolder extends DavHierarchyItem_1.DavHierarchyItem {
5656
const children = new Array();
5757
const listOfFiles = await util_1.promisify(fs_1.readdir)(this.fullPath);
5858
for (let i = 0; i < listOfFiles.length; i++) {
59-
const file = this.path + listOfFiles[i];
59+
const fileName = EncodeUtil_1.EncodeUtil.encodeUrlPart(listOfFiles[i]);
60+
const file = this.path + fileName;
6061
const child = await this.context.getHierarchyItem(file);
6162
if (child !== null && child !== undefined) {
6263
children.push(child);

FileSystem/DavFolder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export class DavFolder extends DavHierarchyItem implements IFolder {
6565
const children = new Array<DavHierarchyItem>();
6666
const listOfFiles = await promisify(readdir)(this.fullPath);
6767
for (let i = 0; i < listOfFiles.length; i++) {
68-
const file = this.path + listOfFiles[i];
68+
const fileName = EncodeUtil.encodeUrlPart(listOfFiles[i]);
69+
const file = this.path + fileName;
6970
const child = await this.context.getHierarchyItem(file);
7071
if (child !== null && child !== undefined) {
7172
children.push((child as any as DavHierarchyItem));

FileSystem/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ithit.webdav.server.filesystem",
3-
"version": "1.1.196",
3+
"version": "1.1.201",
44
"description": "A cross-platform WebDAV Node.js server that runs on Windows, Mac OS X and Linux. This example is a fully-functional WebDAV server that can be used to open, edit and save Microsoft Office documents directly to server, without download/upload steps.",
55
"author": "IT Hit, Ltd",
66
"license": "IT Hit LTD.",

FileSystem/wwwroot/js/webdav-gridview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@
773773
// Web Folders on Windows XP require port, even if it is a default port 80 or 443.
774774
var port = window.location.port || (window.location.protocol == 'http:' ? 80 : 443);
775775

776-
return window.location.protocol + '//' + window.location.hostname + ':' + port + webDavSettings.ApplicationPath + '/';
776+
return window.location.protocol + '//' + window.location.hostname + ':' + port + webDavSettings.ApplicationPath;
777777
},
778778

779779
/**

0 commit comments

Comments
 (0)