Fixed issue with file links: filenames that were already encoded were encoded a second time.

This commit is contained in:
Dario Solera 2009-11-03 09:08:54 +00:00
parent b95f6342a1
commit 24646bd331
3 changed files with 7 additions and 5 deletions

View file

@ -193,7 +193,7 @@ namespace ScrewTurn.Wiki {
row["Type"] = "F";
row["Name"] = GetItemName(s);
row["Size"] = Tools.BytesToString(details.Size);
row["WikiMarkupLink"] = "{UP}" + Tools.UrlEncode(s);
row["WikiMarkupLink"] = "{UP}" + s;
if(canDownload) {
row["Link"] = "GetFile.aspx?File=" + Tools.UrlEncode(s).Replace("'", "'") + "&AsStreamAttachment=1&Provider=" +
provider.GetType().FullName + "&NoHit=1";