From 78b590e935dca14ca9964a2264da88178ae5e835 Mon Sep 17 00:00:00 2001 From: e107steved Date: Wed, 3 Jan 2007 20:50:47 +0000 Subject: [PATCH] Turn off 'greedy' matching bugtracker #3186 (thanks V3) - may also fix #2827 and #3550 --- e107_plugins/linkwords/linkwords.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_plugins/linkwords/linkwords.php b/e107_plugins/linkwords/linkwords.php index bbcb4669f..652180fd7 100644 --- a/e107_plugins/linkwords/linkwords.php +++ b/e107_plugins/linkwords/linkwords.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/linkwords.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:35:24 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2007-01-03 20:50:47 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -51,7 +51,7 @@ class e_linkwords function linkwords($text) { - $content = preg_split('#(<.*>)#mis', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); + $content = preg_split('#(<.*?>)#mis', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); $ptext = ""; foreach($content as $cont) {