Changeset 1701

Show
Ignore:
Timestamp:
2008-03-15 18:16:57 (4 months ago)
Author:
fredck
Message:

ASP.NET fix for #1945 : New folders and file names are now properly sanitized against control characters.

Location:
FCKeditor.Net/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor.Net/trunk/FileBrowser/FileWorkerBase.cs

    r1202 r1701  
    143143                { 
    144144                        // Remove . \ / | : ? * " < > 
    145                         return Regex.Replace( folderName, @"[.\\/|:?*""<>]", "_", RegexOptions.None ); 
     145                        return Regex.Replace( folderName, @"[.\\/|:?*""<>\p{C}]", "_", RegexOptions.None ); 
    146146                } 
    147147 
     
    154154 
    155155                        // Remove \ / | : ? * " < > 
    156                         return Regex.Replace( fileName, @"[\\/|:?*""<>]", "_", RegexOptions.None ); 
     156                        return Regex.Replace( fileName, @"[\\/|:?*""<>\p{C}]", "_", RegexOptions.None ); 
    157157                } 
    158158 
  • FCKeditor.Net/trunk/_whatsnew.html

    r1242 r1701  
    3333        <h1> 
    3434                FCKeditor.Net ChangeLog - What's New?</h1> 
     35        <h3> 
     36                Version 2.6</h3> 
     37        <p> 
     38                Fixed Bugs:</p> 
     39        <ul> 
     40                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1945">#1945</a>] New folders 
     41                        and file names are now properly sanitized against control characters.</li> 
     42        </ul> 
    3543        <h3> 
    3644                Version 2.5</h3>