Fixed issue with single quotes in file/attachment names in file manager and attachment manager/viewer.

This commit is contained in:
Dario Solera 2009-10-20 12:31:16 +00:00
parent 94abba610b
commit ec1fe8967b
4 changed files with 5 additions and 5 deletions

View file

@ -147,7 +147,7 @@ namespace ScrewTurn.Wiki {
row["Editable"] = canUpload && canDelete && (ext == ".jpg" || ext == ".jpeg" || ext == ".png");
row["Page"] = CurrentPage.FullName;
if(canDownload) {
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(CurrentPage.FullName) + "&NoHit=1";
}