Fixed #402: filenames are properly encoded even when the link has the "^" flag.
This commit is contained in:
parent
2e5d16238f
commit
c080770946
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue