Fix so anchor tags without href attribute are not modified (#7413)

pull/5786/merge
Aleksander Machniak 4 years ago
parent af0e98759d
commit 25772702ac

@ -22,6 +22,7 @@ CHANGELOG Roundcube Webmail
- Templates: Add support for nested if conditions (#6818)
- Templates: Make [space][slash] ending of condition objects optional (#6954)
- Fix so messages in threads with no root aren't displayed separately (#4999)
- Fix so anchor tags without href attribute are not modified (#7413)
- Installer: Fix regression in SMTP test section (#7417)
RELEASE 1.4.5

@ -1255,10 +1255,6 @@ function rcmail_washtml_link_callback($tag, $attribs, $content, $washtml)
$attrib['onclick'] = '';
}
}
else if (empty($attrib['href']) && !isset($attrib['name'])) {
$attrib['href'] = './#NOP';
$attrib['onclick'] = 'return false';
}
else if (!empty($attrib['href']) && $attrib['href'][0] != '#') {
$attrib['target'] = '_blank';
}

Loading…
Cancel
Save