git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8997
7612ce4b-ef26-0410-bec9-
ea0150e637f0
} else {
$attachments .= ' | ';
}
- $attachments .= '<a href="' . $val['href'] . '">' . $val['text'] . '</a>';
+ $attachments .= '<a href="' . $val['href'] . '">' . (isset($val['text']) && !empty($val['text']) ? $val['text'] : '') . (isset($val['extra']) && !empty($val['extra']) ? $val['extra'] : '') . '</a>';
}
unset($links);
$attachments .= "</td></tr>\n";
if (preg_match("|$secremoveimg|i", $trusted)){
$has_unsafe_images = true;
}
+
+
+ // we want to parse mailto's and other URLs in HTML output too
+ parseUrl($trusted);
+
return $trusted;
}