[pLog-svn] r743 - plog/trunk/class/data
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Thu Jan 13 15:17:11 GMT 2005
Author: oscar
Date: 2005-01-13 15:17:11 +0000 (Thu, 13 Jan 2005)
New Revision: 743
Modified:
plog/trunk/class/data/stringutils.class.php
Log:
fixed issue 139 (http://bugs.plogworld.net/view.php?id=139), thanks again Jo!
Modified: plog/trunk/class/data/stringutils.class.php
===================================================================
--- plog/trunk/class/data/stringutils.class.php 2005-01-13 15:06:04 UTC (rev 742)
+++ plog/trunk/class/data/stringutils.class.php 2005-01-13 15:17:11 UTC (rev 743)
@@ -27,7 +27,7 @@
*/
function getLinks( $string )
{
- $regexp = "|<a href=\"(.+)\">(.+)</a>|U";
+ $regexp = "|<a[^>]+href=[\"']{0,1}([^'\"]+?)[\"']{0,1}[^>]*>(.+)</a>|iU";
$result = Array();
if( preg_match_all( $regexp, $string, $out, PREG_PATTERN_ORDER )) {
More information about the pLog-svn
mailing list