Added # to washtml's regex for safe links (some list digests have tables of contents that use internal links).

release-0.6
svncommit 15 years ago
parent 4a941f7333
commit e98f249172

@ -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 . '"';

Loading…
Cancel
Save