mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Axing htmlspecialchars because it double-encodes-encodes. Better error handling around queries.
git-svn-id: https://develop.svn.wordpress.org/trunk@1940 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -389,12 +389,12 @@ function wp_new_comment($commentdata) {
|
||||
$comment_post_ID = (int) $comment_post_ID;
|
||||
|
||||
$comment_author = strip_tags($comment_author);
|
||||
$comment_author = htmlspecialchars($comment_author);
|
||||
$comment_author = wp_specialchars($comment_author);
|
||||
|
||||
$comment_author_email = preg_replace('/[^a-z+_.@-]/i', '', $comment_author_email);
|
||||
|
||||
$comment_author_url = strip_tags($comment_author_url);
|
||||
$comment_author_url = htmlspecialchars($comment_author_url);
|
||||
$comment_author_url = wp_specialchars($comment_author_url);
|
||||
|
||||
$comment_content = apply_filters('comment_content_presave', $comment_content);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user