From 25772702acded4213910f62bdaad546f2520c221 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 6 Jun 2020 07:12:27 +0200 Subject: [PATCH] Fix so anchor tags without href attribute are not modified (#7413) --- CHANGELOG | 1 + program/steps/mail/func.inc | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c45af0c94..0ba4ead6f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 5e46189b4..356b90188 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -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'; }