[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.342,1.343

vinny at iowaoutdoors.org vinny at iowaoutdoors.org
Wed Jul 21 15:38:05 EDT 2004


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

Modified Files:
	lib-common.php 
Log Message:
Added support for single quotes and nested tags in COM_extractLinks


Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.342
retrieving revision 1.343
diff -C2 -d -r1.342 -r1.343
*** lib-common.php	19 Jul 2004 01:30:04 -0000	1.342
--- lib-common.php	21 Jul 2004 19:38:02 -0000	1.343
***************
*** 5374,5378 ****
      /* Only match anchor tags that contain 'href="<something>"'
       */
!     preg_match_all( "/<a[^>]*href=\"([^\"]*)\"[^>]*>([^<]*)<\/a>/i", $fulltext, $matches );
      for ( $i=0; $i< count( $matches[0] ); $i++ )
      {
--- 5374,5378 ----
      /* Only match anchor tags that contain 'href="<something>"'
       */
!     preg_match_all( "/<a[^>]*href=[\"']([^\"']*)[\"'][^>]*>(.*?)<\/a>/i", $fulltext, $matches );
      for ( $i=0; $i< count( $matches[0] ); $i++ )
      {




More information about the geeklog-cvs mailing list