Addslashes to user data before inserting in DB.

git-svn-id: https://develop.svn.wordpress.org/trunk@2231 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-02-06 19:02:10 +00:00
parent 21c3726951
commit 9944883d86
+3 -3
View File
@@ -21,9 +21,9 @@ $comment_content = $_POST['comment'];
// If the user is logged in
get_currentuserinfo();
if ( $user_ID ) :
$comment_author = $user_identity;
$comment_author_email = $user_email;
$comment_author_url = str_replace('http://', '', $user_url);
$comment_author = addslashes($user_identity);
$comment_author_email = addslashes($user_email);
$comment_author_url = addslashes(str_replace('http://', '', $user_url));
else :
if ( get_option('comment_registration') )
die( __('Sorry, you must be logged in to post a comment.') );