From 0151ac1f568acf26bc864970a04e0454c8f9329e Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 22 Nov 2010 12:54:28 +0000 Subject: [PATCH] fix for broken send_to mail links --- felamimail/inc/class.bofelamimail.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/felamimail/inc/class.bofelamimail.inc.php b/felamimail/inc/class.bofelamimail.inc.php index 9519be1729..0a3c85a1f0 100644 --- a/felamimail/inc/class.bofelamimail.inc.php +++ b/felamimail/inc/class.bofelamimail.inc.php @@ -2963,7 +2963,8 @@ $cnt = strlen($v); // only break long words within the wordboundaries, // but it may destroy links, so we check for href and dont it if we find one - if($cnt > $allowedLength && stripos($v,'href=')===false) { + if($cnt > $allowedLength && stripos($v,'href=')===false && stripos($v,'onclick=')===false) + { $v=wordwrap($v, $allowedLength, $cut, true); } // the rest should be broken at the start of the new word that exceeds the limit