diff --git a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs index 9988da2..4950bde 100644 --- a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs +++ b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs @@ -97,13 +97,13 @@ namespace WebDAVSharp.Server.MethodHandlers { // Get the parent collection of the item IWebDavStoreCollection collection = GetParentCollection(server, store, fileName); - + String fileNameLocal = ExtractFileName(fileName); try { // Get the item from the collection - IWebDavStoreItem item = GetItemFromCollection(collection, fileName); + IWebDavStoreItem item = GetItemFromCollection(collection, fileNameLocal); } catch (Exception) { - collection.CreateDocument(fileName); + collection.CreateDocument(fileNameLocal); isNew = true; }