summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2009-08-19 18:33:26 +0000
committersvncommit <devs@roundcube.net>2009-08-19 18:33:26 +0000
commite98f24917225837164dfd3ec8ad1d35d7e70474f (patch)
treed2f3e11ab7a6afae0dbceb4646033ad0ae062043 /program
parent4a941f7333a697695073923be49a4e74453383a3 (diff)
Added # to washtml's regex for safe links (some list digests have tables of contents that use internal links).
Diffstat (limited to 'program')
-rw-r--r--program/lib/washtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php
index efd525df3..01b0488fc 100644
--- a/program/lib/washtml.php
+++ b/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 . '"';