User-generated rel attributes shouldn't be allowed in comments (doesn't make sense for any current uses of rel.)

git-svn-id: http://svn.automattic.com/wordpress/trunk@2116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-01-21 07:53:02 +00:00
parent 24d3874fa2
commit f6d6435f63
1 changed files with 28 additions and 28 deletions

View File

@ -15,34 +15,34 @@ if (!defined('CUSTOM_TAGS'))
// You can override this in your my-hacks.php file // You can override this in your my-hacks.php file
if (!CUSTOM_TAGS) { if (!CUSTOM_TAGS) {
$allowedtags = array( $allowedtags = array(
'a' => array( 'a' => array(
'href' => array(), 'href' => array(),
'title' => array(), 'title' => array()
'rel' => array()), ),
'abbr' => array('title' => array()), 'abbr' => array('title' => array()),
'acronym' => array('title' => array()), 'acronym' => array('title' => array()),
'b' => array(), 'b' => array(),
'blockquote' => array('cite' => array()), 'blockquote' => array('cite' => array()),
// 'br' => array(), // 'br' => array(),
'code' => array(), 'code' => array(),
// 'del' => array('datetime' => array()), // 'del' => array('datetime' => array()),
// 'dd' => array(), // 'dd' => array(),
// 'dl' => array(), // 'dl' => array(),
// 'dt' => array(), // 'dt' => array(),
'em' => array(), 'em' => array(),
'i' => array(), 'i' => array(),
// 'ins' => array('datetime' => array(), 'cite' => array()), // 'ins' => array('datetime' => array(), 'cite' => array()),
// 'li' => array(), // 'li' => array(),
// 'ol' => array(), // 'ol' => array(),
// 'p' => array(), // 'p' => array(),
// 'q' => array(), // 'q' => array(),
'strike' => array(), 'strike' => array(),
'strong' => array(), 'strong' => array(),
// 'sub' => array(), // 'sub' => array(),
// 'sup' => array(), // 'sup' => array(),
// 'u' => array(), // 'u' => array(),
// 'ul' => array(), // 'ul' => array(),
); );
} }
function wp_kses($string, $allowed_html, $allowed_protocols = function wp_kses($string, $allowed_html, $allowed_protocols =
array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', array('http', 'https', 'ftp', 'news', 'nntp', 'telnet',