mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +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);
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user