Hi
I am currently trying to configure FCK editor for my site and every time I submit something I get the below error:
A potentially dangerous Request.Form value was detected from the client (FCKeditor1="<STRONG>This is ş ju...").
I take it that this is due to the content being paramaterised by asp.net. It does not liek the HTML tags, I was wondering does anybody know of a way of getting round this?
Many thanks in advance
I am currently trying to configure FCK editor for my site and every time I submit something I get the below error:
A potentially dangerous Request.Form value was detected from the client (FCKeditor1="<STRONG>This is ş ju...").
I take it that this is due to the content being paramaterised by asp.net. It does not liek the HTML tags, I was wondering does anybody know of a way of getting round this?
Many thanks in advance
RE: A potentially dangerous Request.Form
<configuration>
...
<system.web>
<pages validateRequest="false" />
...
</system.web>
...
</configuration>
RE: A potentially dangerous Request.Form
<code>
<configuration>
...
<system.web>
<pages validateRequest="false" />
...
</system.web>
...
</configuration>
</code>
Have a nice day!
RE: A potentially dangerous Request.Form
RE: A potentially dangerous Request.Form
Or, you can really solve the problem.
http://sourceforge.net/forum/message.php?msg_id=3983772
Re: RE: A potentially dangerous Request.Form
Excellent! Now I don't need to set validateRequest=false for the entire page. Thanks!
Any chance this fix will be incorporated into the mainline code?
-Frank
Re: A potentially dangerous Request.Form
Re: A potentially dangerous Request.Form
I was able to solve the problem by adding:
oFCKeditor.Config['HtmlEncodeOutput']=true;
to the following:
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
oFCKeditor.Config['HtmlEncodeOutput']=true;
oFCKeditor.Create() ;
Re: A potentially dangerous Request.Form
Full solution for ASP.NET MVC2:
http://arturito.net/2011/05/26/ckeditor-a-potentially-dangerous-request-form-value-was-detected-from-the-client/
No need to touch web.config or add attributes.
Re: A potentially dangerous Request.Form
Try this link if using .Net.
Try this link if using .Net.
potentially dangerous Request.Form value was detected from the client
solve
i solve this problem too with var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
oFCKeditor.Config['HtmlEncodeOutput']=true;
oFCKeditor.Create() ;
A potentially dangerous Request.Form
NET detected something in the entered text which looked like an HTML statement. Then I got a link Request Validation, that is a feature put in place to protect your application cross site scripting attack and followed accordingly.
I just like to know what is
I just like to know what is the actual problem of this