mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-11 22:29:48 +01:00
Comments: Use wp_strip_all_tags()
to strip HTML tags.
`wp_kses()` should only be used if you have a whitelist. Props rachelbaker. Fixes #37208. Built from https://develop.svn.wordpress.org/trunk@38092 git-svn-id: http://core.svn.wordpress.org/trunk@38033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a320320ea0
commit
da88178148
@ -1057,7 +1057,7 @@ function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_age
|
|||||||
return false; // If moderation keys are empty
|
return false; // If moderation keys are empty
|
||||||
|
|
||||||
// Ensure HTML tags are not being used to bypass the blacklist.
|
// Ensure HTML tags are not being used to bypass the blacklist.
|
||||||
$comment_without_html = wp_kses( $comment, array() );
|
$comment_without_html = wp_strip_all_tags( $comment );
|
||||||
|
|
||||||
$words = explode("\n", $mod_keys );
|
$words = explode("\n", $mod_keys );
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-beta3-38091';
|
$wp_version = '4.6-beta3-38092';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user