From 1b4b338fb9abcb1060df9a5aa450f1ff2c17c69c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 11 Apr 2004 10:10:51 +0000 Subject: [PATCH] fixed wrong activation of mailto: addresses in in links --- phpgwapi/inc/class.html.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 21cfeedeac..4e5f8509ba 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -2,7 +2,7 @@ /**************************************************************************\ * eGroupWare - HTML creation class * * http://www.eGroupWare.org * - * Written by Ralf Becker * + * Written and (c) by Ralf Becker * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * @@ -41,13 +41,15 @@ function activate_links($content) { + // Exclude everything which is already a link + $NotAnchor = '(?\\1 AT \\2 DOT \\3', $content); // First match things beginning with http:// (or other protocols) - $NotAnchor = '(?$2$3", $result ); // Now match things beginning with www. - $NotAnchor = '(?