[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.382,1.383

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Tue Oct 5 14:03:23 EDT 2004


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

Modified Files:
	lib-common.php 
Log Message:
In [code] sections, replace '[' and ']' with their HTML entities to prevent autotags from being interpreted there.


Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.382
retrieving revision 1.383
diff -C2 -d -r1.382 -r1.383
*** lib-common.php	3 Oct 2004 16:21:58 -0000	1.382
--- lib-common.php	5 Oct 2004 18:03:20 -0000	1.383
***************
*** 2910,2914 ****
          $A['comment'] = str_replace( '}', '}', $A['comment'] );
  
!         $A['comment'] = PLG_replacetags($A['comment']);   // Replace any plugin autolink tags
  
          $template->set_var( 'title', $A['title'] );
--- 2910,2915 ----
          $A['comment'] = str_replace( '}', '}', $A['comment'] );
  
!         // Replace any plugin autolink tags
!         $A['comment'] = PLG_replaceTags( $A['comment'] );
  
          $template->set_var( 'title', $A['title'] );
***************
*** 3192,3199 ****
  function COM_handleCode( $str )
  {
!     $str = str_replace( '&', '&', $str );
!     $str = str_replace( '\\', '\', $str );
!     $str = str_replace( '<', '<', $str );
!     $str = str_replace( '>', '>', $str );
  
      return( $str );
--- 3193,3200 ----
  function COM_handleCode( $str )
  {
!     $search  = array( '&',     '\\',    '<',    '>',    '[',     ']'     );
!     $replace = array( '&', '\', '<', '>', '[', ']' );
! 
!     $str = str_replace( $search, $replace, $str );
  
      return( $str );




More information about the geeklog-cvs mailing list