httpHomeUri.Uri.AbsoluteUri; returns the encoded Uri including the query
portion of it without double encoding the file name. This will return
properly encode non-ascii paths as described in #371.
This commit is contained in:
Leo Lam 2015-01-12 14:14:52 -05:00
parent e9e5b14e75
commit 519be3437e

View file

@ -231,7 +231,7 @@ public string GetUriPath(string filename, string subFolderPath = null)
}
httpHomeUri.Scheme = BrowserProtocol.GetDescription();
return httpHomeUri.Uri.ToString();
return httpHomeUri.Uri.AbsoluteUri;
}
public string GetFtpPath(string filemame)