mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
fix for broken send_to mail links
This commit is contained in:
parent
6e305b5b9e
commit
0151ac1f56
@ -2963,7 +2963,8 @@
|
|||||||
$cnt = strlen($v);
|
$cnt = strlen($v);
|
||||||
// only break long words within the wordboundaries,
|
// only break long words within the wordboundaries,
|
||||||
// but it may destroy links, so we check for href and dont it if we find one
|
// 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);
|
$v=wordwrap($v, $allowedLength, $cut, true);
|
||||||
}
|
}
|
||||||
// the rest should be broken at the start of the new word that exceeds the limit
|
// the rest should be broken at the start of the new word that exceeds the limit
|
||||||
|
Loading…
Reference in New Issue
Block a user