[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.245,1.246

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Mon Aug 18 04:36:59 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv11602/public_html

Modified Files:
	lib-common.php 
Log Message:
Fixed stripping of HTML tags from What's Related block.


Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.245
retrieving revision 1.246
diff -C2 -d -r1.245 -r1.246
*** lib-common.php	17 Aug 2003 09:38:01 -0000	1.245
--- lib-common.php	18 Aug 2003 08:36:57 -0000	1.246
***************
*** 4732,4741 ****
  
          // this gets what is between <a href=...> and </a>
!         preg_match( "/<a href=([^\]]+)>([^\]]+)<\/a>/", stripslashes( $reg[0] ),
!                 $url_text);
          if( empty( $url_text[1] ))
          {
!             preg_match( "/<A HREF=([^\]]+)>([^\]]+)<\/A>/",
!                     stripslashes( $reg[0] ), $url_text );
          }
  
--- 4732,4739 ----
  
          // this gets what is between <a href=...> and </a>
!         preg_match( "/<a href=([^\]]+)>([^\]]+)<\/a>/", $reg[0], $url_text);
          if( empty( $url_text[1] ))
          {
!             preg_match( "/<A HREF=([^\]]+)>([^\]]+)<\/A>/", $reg[0], $url_text );
          }
  
***************
*** 4766,4770 ****
              if( !( stristr( $reg[0], "<img " )))
              {
!                 $rel[] = stripslashes( $reg[0] );
              }
          }
--- 4764,4768 ----
              if( !( stristr( $reg[0], "<img " )))
              {
!                 $rel[] = COM_checkHTML( $reg[0] );
              }
          }
***************
*** 4810,4814 ****
      if( sizeof( $rel ) > 0 )
      {
!         $related = COM_checkHTML( COM_checkWords( COM_makeList( $rel )));
      }
  
--- 4808,4812 ----
      if( sizeof( $rel ) > 0 )
      {
!         $related = COM_checkWords( COM_makeList( $rel ));
      }
  





More information about the geeklog-cvs mailing list