Changeset 4656 for trunk/wp-includes/comment.php
- Timestamp:
- 12/21/2006 10:10:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r4631 r4656 156 156 $comment_author = apply_filters('pre_comment_author_name', $_COOKIE['comment_author_'.COOKIEHASH]); 157 157 $comment_author = stripslashes($comment_author); 158 $comment_author = wp_specialchars($comment_author, true);158 $comment_author = attribute_escape($comment_author); 159 159 $_COOKIE['comment_author_'.COOKIEHASH] = $comment_author; 160 160 } … … 163 163 $comment_author_email = apply_filters('pre_comment_author_email', $_COOKIE['comment_author_email_'.COOKIEHASH]); 164 164 $comment_author_email = stripslashes($comment_author_email); 165 $comment_author_email = wp_specialchars($comment_author_email, true);165 $comment_author_email = attribute_escape($comment_author_email); 166 166 $_COOKIE['comment_author_email_'.COOKIEHASH] = $comment_author_email; 167 167 } … … 170 170 $comment_author_url = apply_filters('pre_comment_author_url', $_COOKIE['comment_author_url_'.COOKIEHASH]); 171 171 $comment_author_url = stripslashes($comment_author_url); 172 $comment_author_url = wp_specialchars($comment_author_url, true);172 $comment_author_url = attribute_escape($comment_author_url); 173 173 $_COOKIE['comment_author_url_'.COOKIEHASH] = $comment_author_url; 174 174 }
Note: See TracChangeset
for help on using the changeset viewer.