Index: /trunk/roundcubemail/program/lib/washtml.php
===================================================================
--- /trunk/roundcubemail/program/lib/washtml.php	(revision 2862)
+++ /trunk/roundcubemail/program/lib/washtml.php	(revision 2863)
@@ -172,5 +172,5 @@
       $value = $node->getAttribute($key);
       if(isset($this->_html_attribs[$key]) ||
-         ($key == 'href' && preg_match('/^(http|https|ftp|mailto):.+/i', $value)))
+         ($key == 'href' && preg_match('/^(http:|https:|ftp:|mailto:|#).+/i', $value)))
         $t .= ' ' . $key . '="' . htmlspecialchars($value, ENT_QUOTES) . '"';
       else if($key == 'style' && ($style = $this->wash_style($value)))
