diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 5cb15eca2..cd656868b 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $ -| $Revision: 1.30 $ -| $Date: 2008-03-15 12:33:21 $ +| $Revision: 1.31 $ +| $Date: 2008-03-17 21:01:44 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -588,7 +588,7 @@ class e_parse if ($pref['link_replace'] && !$opts['no_replace']) { $_ext = ($pref['links_new_window'] ? " rel=\"external\"" : ""); - $text = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1".$pref['link_text']."", $text); + $text = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<,]*)#is", "\\1".$pref['link_text']."", $text); $text = preg_replace("#(^|[\n \]])((www|ftp)\.[\w+-]+?\.[\w+\-.]*(?(?=/)(/.+?(?=\s|,\s))|(?=\W)))#is", "\\1".$pref['link_text']."", $text); if(CHARSET != "utf-8" && CHARSET != "UTF-8") {