From 2dcc332969bb38107ed9462785c05fde66a20e13 Mon Sep 17 00:00:00 2001 From: ksteinhoff Date: Wed, 19 Aug 2009 18:33:26 +0000 Subject: 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 --- roundcubemail/program/lib/washtml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/lib/washtml.php') 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 . '"'; -- cgit v1.2.3