[completed: 567]Fixed backslashes for UNC file link.

This commit is contained in:
Matteo Tomasini 2011-08-31 17:31:13 +02:00
parent ff07e317cd
commit 9d52f36079
3 changed files with 7 additions and 6 deletions

View file

@ -16,5 +16,5 @@ using System.Reflection;
// //
// You can specify all the values or you can default the Revision and Build Numbers // You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.5.608")] [assembly: AssemblyVersion("3.0.5.609")]
[assembly: AssemblyFileVersion("3.0.5.608")] [assembly: AssemblyFileVersion("3.0.5.609")]

View file

@ -35,6 +35,7 @@
function ProcessFileLink() { function ProcessFileLink() {
var name = GetValue("txtFilePath"); var name = GetValue("txtFilePath");
name = name.replace(/\\/g, '\\\\');
if(name == "") return false; if(name == "") return false;
var title = GetValue("txtFileTitle"); var title = GetValue("txtFileTitle");
var c = IsChecked("chkFileNW") ? "^" : ""; var c = IsChecked("chkFileNW") ? "^" : "";

View file

@ -84,10 +84,10 @@
var title = GetValue("txtFileTitle"); var title = GetValue("txtFileTitle");
if(title == "") title = GetValue("txtFilePath"); if(title == "") title = GetValue("txtFilePath");
title = title.replace('\'', '''); title = title.replace(/\'/g, ''');
title = title.replace('\'', '''); title = title.replace(/\\/g, '\\\\');
title = title.replace('\'', '''); name = name.replace(/\'/g, ''');
title = title.replace('\'', '''); name = name.replace(/\\/g, '\\\\');
// Sample string: <a class="internallink" [target="_blank" ]href="GetFile.aspx?Provider=PROVIDER&amp;File=FILE" title="TITLE">TITLE</a> // Sample string: <a class="internallink" [target="_blank" ]href="GetFile.aspx?Provider=PROVIDER&amp;File=FILE" title="TITLE">TITLE</a>
// Sample string: <a class="internallink" [target="_blank" ]href="GetFile.aspx?Provider=PROVIDER&amp;IsPageAttachment=1&amp;Page=PAGE&amp;File=FILE" title="TITLE">TITLE</a> // Sample string: <a class="internallink" [target="_blank" ]href="GetFile.aspx?Provider=PROVIDER&amp;IsPageAttachment=1&amp;Page=PAGE&amp;File=FILE" title="TITLE">TITLE</a>