Changeset 1672


Ignore:
Timestamp:
03/02/2008 10:05:42 PM (7 years ago)
Author:
alfonsoml
Message:

Fix for the asp part of #1945. Avoid control characters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/filemanager/connectors/asp/io.asp

    r1565 r1672  
    186186        oRegex.Global           = True 
    187187 
    188 ' remove . \ / | : ? *  " < > 
    189         oRegex.Pattern = "(\.|\\|\/|\||:|\?|\*|""|\<|\>)" 
     188' remove . \ / | : ? *  " < > and control characters 
     189        oRegex.Pattern = "(\.|\\|\/|\||:|\?|\*|""|\<|\>|[\u0000-\u001F]|\u007F)" 
    190190        SanitizeFolderName = oRegex.Replace( sNewFolderName, "_" ) 
    191191 
     
    204204        end if 
    205205 
    206 ' remove \ / | : ? *  " < > 
    207         oRegex.Pattern = "(\\|\/|\||:|\?|\*|""|\<|\>)" 
     206' remove \ / | : ? *  " < > and control characters 
     207        oRegex.Pattern = "(\\|\/|\||:|\?|\*|""|\<|\>|[\u0000-\u001F]|\u007F)" 
    208208        SanitizeFileName = oRegex.Replace( sNewFileName, "_" ) 
    209209 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy