Changeset 1652

Show
Ignore:
Timestamp:
2008-02-28 12:40:45 (2 years ago)
Author:
wwalc
Message:

Fix for #1945 - sanitizing control characters in ColdFusion.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/filemanager/connectors/cfm/cf_io.cfm

    r1565 r1652  
    205205 
    206206        <!--- Do a cleanup of the folder name to avoid possible problems ---> 
    207         <!--- Remove . \ / | : ? * " < > ---> 
    208         <cfset sNewFolderName = rereplace( sNewFolderName, '\.+|\\+|\/+|\|+|\:+|\?+|\*+|"+|<+|>+', "_", "all" )> 
     207        <!--- Remove . \ / | : ? * " < > and control characters ---> 
     208        <cfset sNewFolderName = rereplace( sNewFolderName, '\.+|\\+|\/+|\|+|\:+|\?+|\*+|"+|<+|>+|[[:cntrl:]]+', "_", "all" )> 
    209209 
    210210        <cfreturn sNewFolderName> 
     
    282282 
    283283        <!--- Do a cleanup of the file name to avoid possible problems ---> 
    284         <!--- Remove \ / | : ? * " < > ---> 
    285         <cfset sNewFileName = rereplace( sNewFileName, '\\[.]+|\\+|\/+|\|+|\:+|\?+|\*+|"+|<+|>+', "_", "all" )> 
     284        <!--- Remove \ / | : ? * " < > and control characters ---> 
     285        <cfset sNewFileName = rereplace( sNewFileName, '\\[.]+|\\+|\/+|\|+|\:+|\?+|\*+|"+|<+|>+|[[:cntrl:]]+', "_", "all" )> 
    286286 
    287287        <cfreturn sNewFileName>