webdav portal fixes
This commit is contained in:
parent
996e56a835
commit
833b7c1aa4
3 changed files with 7 additions and 2 deletions
|
@ -59,7 +59,10 @@ namespace WebsitePanel.WebDav.Core
|
|||
{
|
||||
get
|
||||
{
|
||||
string displayName = _href.AbsoluteUri.Replace(_baseUri.AbsoluteUri, "");
|
||||
var href = HttpUtility.UrlDecode(_href.AbsoluteUri);
|
||||
var baseUri = HttpUtility.UrlDecode(_baseUri.AbsoluteUri);
|
||||
|
||||
string displayName = href.Replace(baseUri, "");
|
||||
displayName = Regex.Replace(displayName, "\\/$", "");
|
||||
Match displayNameMatch = Regex.Match(displayName, "([\\/]+)$");
|
||||
if (displayNameMatch.Success)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue