From c0807709460fbb3450c6a522faa75baf73b10cfb Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Mon, 26 Oct 2009 06:55:24 +0000 Subject: [PATCH] Fixed #402: filenames are properly encoded even when the link has the "^" flag. --- AssemblyVersion.cs | 4 ++-- Core/Formatter.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index b429fc6..0ac17ee 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.1.421")] -[assembly: AssemblyFileVersion("3.0.1.421")] +[assembly: AssemblyVersion("3.0.1.422")] +[assembly: AssemblyFileVersion("3.0.1.422")] diff --git a/Core/Formatter.cs b/Core/Formatter.cs index 9878a5c..f0464dc 100644 --- a/Core/Formatter.cs +++ b/Core/Formatter.cs @@ -236,7 +236,7 @@ namespace ScrewTurn.Wiki { // i.e. check if {UP} is used just after a '[' // This works because links are processed afterwards string sbString = sb.ToString(); - if(match.Index > 0 && sbString[match.Index - 1] == '[') { + if(match.Index > 0 && (sbString[match.Index - 1] == '[' || sbString[match.Index - 1] == '^')) { EncodeFilename(sb, match.Index + match.Length); }