[pLog-svn] r785 - plog/trunk/class/dao/customfields

oscar at devel.plogworld.net oscar at devel.plogworld.net
Fri Jan 21 17:25:47 GMT 2005


Author: oscar
Date: 2005-01-21 17:25:46 +0000 (Fri, 21 Jan 2005)
New Revision: 785

Modified:
   plog/trunk/class/dao/customfields/customfield.class.php
Log:
now all html code is filtered out in CustomField::setName and in the constructor of the class

Modified: plog/trunk/class/dao/customfields/customfield.class.php
===================================================================
--- plog/trunk/class/dao/customfields/customfield.class.php	2005-01-21 17:25:22 UTC (rev 784)
+++ plog/trunk/class/dao/customfields/customfield.class.php	2005-01-21 17:25:46 UTC (rev 785)
@@ -6,6 +6,7 @@
 
 
 	include_once( PLOG_CLASS_PATH."class/database/dbobject.class.php" );
+	include_once( PLOG_CLASS_PATH."class/data/textfilter.class.php" );	
 
 	/**
      * Defines a custom field
@@ -24,7 +25,7 @@
 		function CustomField( $name, $description, $type, $blogId, $hidden = false, $searchable = true, $id = -1 )
 		{
 			$this->DbObject();
-			$this->_name = $name;
+			$this->setName( $name );
 			$this->_description = $description;
 			$this->_type = $type;
 			$this->_id = $id;
@@ -51,7 +52,7 @@
 		
 		function setName( $name )
 		{
-			$this->_name = $name;
+			$this->_name = Textfilter::filterAllHTML( $name );
 		}
 		
 		function getType()




More information about the pLog-svn mailing list