summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorksteinhoff <ksteinhoff@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-08-19 18:33:26 +0000
committerksteinhoff <ksteinhoff@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-08-19 18:33:26 +0000
commit2dcc332969bb38107ed9462785c05fde66a20e13 (patch)
tree3479b24398baa67122ac8310adfd4340c48fbb2d
parent87b8fcd84a134d11fa61af3035ba7b6bd7155924 (diff)
Added # to washtml's regex for safe links (some list digests have tables of contents that use internal links).
git-svn-id: https://svn.roundcube.net/trunk@2863 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/lib/washtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/washtml.php b/roundcubemail/program/lib/washtml.php
index efd525df3..01b0488fc 100644
--- a/roundcubemail/program/lib/washtml.php
+++ b/roundcubemail/program/lib/washtml.php
@@ -171,7 +171,7 @@ class washtml
$key = strtolower($key);
$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)))
$t .= ' style="' . $style . '"';