Show
Ignore:
Timestamp:
2007-12-13 19:33:33 (9 months ago)
Author:
fredck
Message:

For #79 : Implemented many of our standard security checks and the new configuration system handling for the file browser.

Files:
1 modified

Legend:

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

    r1172 r1202  
    425425                        string sUserAgent = request.UserAgent; 
    426426 
    427                         if ( sUserAgent.Contains( "Gecko/" ) ) 
     427                        if ( sUserAgent.IndexOf( "Gecko/" ) >= 0 ) 
    428428                        { 
    429429                                Match oMatch = Regex.Match( request.UserAgent, @"(?<=Gecko/)\d{8}" ); 
     
    431431                        } 
    432432 
    433                         if ( sUserAgent.Contains( "Opera/" ) ) 
     433                        if ( sUserAgent.IndexOf( "Opera/" ) >= 0 ) 
    434434                        { 
    435435                                Match oMatch = Regex.Match( request.UserAgent, @"(?<=Opera/)[\d\.]+" ); 
     
    437437                        } 
    438438 
    439                         if ( sUserAgent.Contains( "AppleWebKit/" ) ) 
     439                        if ( sUserAgent.IndexOf( "AppleWebKit/" ) >= 0 ) 
    440440                        { 
    441441                                Match oMatch = Regex.Match( request.UserAgent, @"(?<=AppleWebKit/)\d+" );