webdav portal fixes

This commit is contained in:
vfedosevich 2015-03-12 04:44:39 -07:00
parent fa588c8559
commit 0f61d148ff
3 changed files with 20 additions and 21 deletions

View file

@ -325,7 +325,7 @@ namespace WebsitePanel.WebDavPortal.Controllers
[HttpPost]
public JsonResult ItemExist(string org, string pathPart, string newItemName)
{
var exist = _webdavManager.FileExist(string.Format("{0}/{1}", pathPart, newItemName));
var exist = _webdavManager.FileExist(string.Format("{0}/{1}", pathPart.TrimEnd('/'), newItemName.Trim('/')));
return new JsonResult()
{