|
|
@ -240,7 +240,8 @@ class rcube_washtml
|
|
|
|
$value = $node->getAttribute($key);
|
|
|
|
$value = $node->getAttribute($key);
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($this->_html_attribs[$key]) ||
|
|
|
|
if (isset($this->_html_attribs[$key]) ||
|
|
|
|
($key == 'href' && !preg_match('!^(javascript|vbscript|data:text)!i', $value)
|
|
|
|
($key == 'href' && ($value = trim($value))
|
|
|
|
|
|
|
|
&& !preg_match('!^(javascript|vbscript|data:text)!i', $value)
|
|
|
|
&& preg_match('!^([a-z][a-z0-9.+-]+:|//|#).+!i', $value))
|
|
|
|
&& preg_match('!^([a-z][a-z0-9.+-]+:|//|#).+!i', $value))
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
$t .= ' ' . $key . '="' . htmlspecialchars($value, ENT_QUOTES) . '"';
|
|
|
|
$t .= ' ' . $key . '="' . htmlspecialchars($value, ENT_QUOTES) . '"';
|
|
|
|