Show
Ignore:
Timestamp:
2007-12-13 19:33:33 (8 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/Util.cs

    r1174 r1202  
    2929namespace FredCK.FCKeditorV2 
    3030{ 
    31         public sealed class Util 
     31        internal sealed class Util 
    3232        { 
    3333                // The "_mkdir" function is used by the "CreateDirectory" method. 
     
    107107                        } 
    108108                } 
     109 
     110                public static bool ArrayContains( Array array, object value, System.Collections.IComparer comparer ) 
     111                { 
     112                        foreach ( object item in array ) 
     113                        { 
     114                                if ( comparer.Compare( item, value ) == 0 ) 
     115                                        return true; 
     116                        } 
     117                        return false; 
     118                } 
    109119        } 
    110120}