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

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

Files:
1 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