[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.416,1.417

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sun Feb 20 04:54:11 EST 2005


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv19295/public_html

Modified Files:
	lib-common.php 
Log Message:
Included kses 0.2.2


Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.416
retrieving revision 1.417
diff -C2 -d -r1.416 -r1.417
*** lib-common.php	3 Feb 2005 19:57:40 -0000	1.416
--- lib-common.php	20 Feb 2005 09:54:09 -0000	1.417
***************
*** 2792,2803 ****
      $str = preg_replace( '/<!--.+?-->/', '', $str );
  
!     $filter = new kses;
      if( isset( $_CONF['allowed_protocols'] ) && is_array( $_CONF['allowed_protocols'] ) && ( sizeof( $_CONF['allowed_protocols'] ) > 0 ))
      {
!         $filter->Protocols( $_CONF['allowed_protocols'] );
      }
      else
      {
!         $filter->Protocols( array( 'http:', 'https:', 'ftp:' ));
      }
  
--- 2792,2803 ----
      $str = preg_replace( '/<!--.+?-->/', '', $str );
  
!     $filter = new kses4;
      if( isset( $_CONF['allowed_protocols'] ) && is_array( $_CONF['allowed_protocols'] ) && ( sizeof( $_CONF['allowed_protocols'] ) > 0 ))
      {
!         $filter->SetProtocols( $_CONF['allowed_protocols'] );
      }
      else
      {
!         $filter->SetProtocols( array( 'http:', 'https:', 'ftp:' ));
      }
  




More information about the geeklog-cvs mailing list