Show
Ignore:
Timestamp:
2007-12-04 13:26:38 (10 months ago)
Author:
fredck
Message:

Fixed #294 : The HtmlEncodeOutput setting is enforced by the editor component, to avoid having to set ValidateRequest="false" on pages using the editor.

Files:
1 modified

Legend:

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

    r1167 r1172  
    7070                        } 
    7171 
     72                        // To avoid the "A potentially dangerous Request.Form value was 
     73                        // detected from the client" error, forcing developers to set 
     74                        // validateRequest=false in their pages, we are forcing 
     75                        // HtmlEncodeOutput to "true", if not defined. (#294) 
     76                        if ( !_Configs.Contains( "HtmlEncodeOutput" ) ) 
     77                        { 
     78                                if ( osParams.Length > 0 ) 
     79                                        osParams.Append( "&" ) ; 
     80 
     81                                osParams.Append( "HtmlEncodeOutput=true" ) ; 
     82                        } 
     83 
    7284                        return osParams.ToString() ; 
    7385                }