Show
Ignore:
Timestamp:
03/14/07 23:12:47 (2 years ago)
Author:
markjaquith
Message:

nonce-protect comments by users with unfiltered_html cap to prevent xsrf/xss. fixes #3973 for 2.1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.1/wp-includes/default-filters.php

    r4556 r5040  
    3131add_filter('pre_comment_author_email', 'wp_filter_kses'); 
    3232add_filter('pre_comment_author_url', 'wp_filter_kses'); 
     33 
     34add_action('comment_form', 'wp_comment_form_unfiltered_html_nonce'); 
    3335 
    3436// Default filters for these functions