fix for broken send_to mail links

This commit is contained in:
Klaus Leithoff 2010-11-22 12:54:28 +00:00
parent 6e305b5b9e
commit 0151ac1f56

View File

@ -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