CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 FCKeditor - Prevent Malicious Code Insertion, Secure FCKeditor

Print topic Send  topic

Author Message
jjrjr1


Posts: 942
Posted: 11/07/2008, 5:58 PM

Hi

Here is a method to prevent malicious code being inserted into a field.

There could be other methods but this works.
function FCKSecure($HTML){  
$SafeTags="<pre><b><br><a><p><table><td><th><tr><img>  
<li><font><strong><i><u><ul><span><div><dt><h1><h2>  
<h3><h4><h5><h6><blockquote><basefont><bgsound>  
<center><code><quote>";  
  
$SafeHTML=strip_tags($HTML,$SafeTags);  
  
return $SafeHTML;  
}  

Here is more detailed information on this method

http://ccselite.com/forums_topics_view.php?forum_id=2&forum_topic_id=21

Have Fun
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 11/12/2008, 5:25 AM

jjrjr1
Could you put [TIP] in your thread header and possible post this in the Tips & Solutions forum. Thanks.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.