Fixed issue with single quotes in file/attachment names in file manager and attachment manager/viewer.
This commit is contained in:
parent
94abba610b
commit
ec1fe8967b
4 changed files with 5 additions and 5 deletions
|
@ -49,7 +49,7 @@ namespace ScrewTurn.Wiki {
|
|||
DataRow row = table.NewRow();
|
||||
row["Name"] = s;
|
||||
row["Size"] = Tools.BytesToString(provider.GetPageAttachmentDetails(pageInfo, s).Size);
|
||||
row["Link"] = "GetFile.aspx?File=" + Tools.UrlEncode(s) + "&AsStreamAttachment=1&Provider=" +
|
||||
row["Link"] = "GetFile.aspx?File=" + Tools.UrlEncode(s).Replace("'", "'") + "&AsStreamAttachment=1&Provider=" +
|
||||
provider.GetType().FullName + "&IsPageAttachment=1&Page=" + Tools.UrlEncode(pageInfo.FullName);
|
||||
table.Rows.Add(row);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue