1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Turn off 'greedy' matching bugtracker #3186 (thanks V3) - may also fix #2827 and #3550

This commit is contained in:
e107steved
2007-01-03 20:50:47 +00:00
parent a871c3f5c4
commit 78b590e935

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/linkwords.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/linkwords/linkwords.php,v $
| $Revision: 1.1.1.1 $ | $Revision: 1.2 $
| $Date: 2006-12-02 04:35:24 $ | $Date: 2007-01-03 20:50:47 $
| $Author: mcfly_e107 $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -51,7 +51,7 @@ class e_linkwords
function linkwords($text) 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 = ""; $ptext = "";
foreach($content as $cont) foreach($content as $cont)
{ {