WordPress.org

Plugin Directory

Changeset 326475


Ignore:
Timestamp:
12/27/10 22:25:23 (3 years ago)
Author:
lessbloat
Message:

filtering of field input and output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grunion-contact-form/trunk/grunion-contact-form.php

    r326473 r326475  
    6464        $field_value = $field['default']; 
    6565    } 
     66     
     67    $field_value = wp_kses($field_value, array()); 
    6668 
    6769    if ( $field['type'] == 'email' ) { 
     
    466468        'post_parent'   => $post->ID, 
    467469        'post_title'    => $feedback_title, 
    468         'post_content'  => $comment_content . "\n<!--more-->\n" . "AUTHOR: {$comment_author}\nAUTHOR EMAIL: {$comment_author_email}\nAUTHOR URL: {$comment_author_url}\nSUBJECT: {$contact_form_subject}\nIP: {$comment_author_IP}\n" . print_r( $all_values, TRUE ), // so that search will pick up this data 
     470        'post_content'  => wp_kses($comment_content . "\n<!--more-->\n" . "AUTHOR: {$comment_author}\nAUTHOR EMAIL: {$comment_author_email}\nAUTHOR URL: {$comment_author_url}\nSUBJECT: {$contact_form_subject}\nIP: {$comment_author_IP}\n" . print_r( $all_values, TRUE ), array()), // so that search will pick up this data 
    469471        'post_name'     => md5( $feedback_title ) 
    470472    ) ); 
Note: See TracChangeset for help on using the changeset viewer.