summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-05-13 01:47:44 +0000
committerestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-05-13 01:47:44 +0000
commit265ec43ade38341a5eecb5128f1749474fbdabc8 (patch)
treea2f7bfe1e1cff8e7e667d085e65f623c4dff2fcc
parent53f65b7ec969aa41039c9fb14cb6c7c4a16a27d2 (diff)
remove code obsoleted by fix to parse_attrib_string
git-svn-id: https://svn.roundcube.net/trunk@1381 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/mail/func.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 073950a23..ec594bcd1 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -1175,9 +1175,8 @@ function rcmail_sanitize_html($body, $container_id)
// parse link attributes and set correct target
function rcmail_alter_html_link($tag, $attrs, $container_id)
{
- $in = preg_replace('/=([^("|\'|\s)]+)(\s|$)/', '="\1"', $in);
$attrib = parse_attrib_string($attrs);
-
+
if ($tag == 'link' && preg_match('/^https?:\/\//i', $attrib['href']))
$attrib['href'] = "./bin/modcss.php?u=" . urlencode($attrib['href']) . "&amp;c=" . urlencode($container_id);
@@ -1186,7 +1185,7 @@ function rcmail_alter_html_link($tag, $attrs, $container_id)
"return %s.command('compose','%s',this)",
JS_OBJECT_NAME,
JQ(substr($attrib['href'], 7)));
-
+
else if (!empty($attrib['href']) && $attrib['href']{0}!='#')
$attrib['target'] = '_blank';