Changeset 50533 for trunk/src/wp-includes/comment.php
- Timestamp:
- 03/14/2021 04:59:45 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r50375 r50533 616 616 * @param string $author_cookie The comment author name cookie. 617 617 */ 618 $comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] ); 619 $comment_author = wp_unslash( $comment_author ); 620 $comment_author = esc_attr( $comment_author ); 618 $comment_author = apply_filters( 'pre_comment_author_name', $_COOKIE[ 'comment_author_' . COOKIEHASH ] ); 619 $comment_author = wp_unslash( $comment_author ); 620 $comment_author = esc_attr( $comment_author ); 621 621 622 $_COOKIE[ 'comment_author_' . COOKIEHASH ] = $comment_author; 622 623 } … … 633 634 * @param string $author_email_cookie The comment author email cookie. 634 635 */ 635 $comment_author_email = apply_filters( 'pre_comment_author_email', $_COOKIE[ 'comment_author_email_' . COOKIEHASH ] ); 636 $comment_author_email = wp_unslash( $comment_author_email ); 637 $comment_author_email = esc_attr( $comment_author_email ); 636 $comment_author_email = apply_filters( 'pre_comment_author_email', $_COOKIE[ 'comment_author_email_' . COOKIEHASH ] ); 637 $comment_author_email = wp_unslash( $comment_author_email ); 638 $comment_author_email = esc_attr( $comment_author_email ); 639 638 640 $_COOKIE[ 'comment_author_email_' . COOKIEHASH ] = $comment_author_email; 639 641 } … … 650 652 * @param string $author_url_cookie The comment author URL cookie. 651 653 */ 652 $comment_author_url = apply_filters( 'pre_comment_author_url', $_COOKIE[ 'comment_author_url_' . COOKIEHASH ] ); 653 $comment_author_url = wp_unslash( $comment_author_url ); 654 $comment_author_url = apply_filters( 'pre_comment_author_url', $_COOKIE[ 'comment_author_url_' . COOKIEHASH ] ); 655 $comment_author_url = wp_unslash( $comment_author_url ); 656 654 657 $_COOKIE[ 'comment_author_url_' . COOKIEHASH ] = $comment_author_url; 655 658 }
Note: See TracChangeset
for help on using the changeset viewer.