Making WordPress.org


Ignore:
Timestamp:
04/04/2016 06:43:54 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Sanitize the body of the application notification email.

This is actually already sanitized before it gets passed in, but doing it again within the function doesn't hurt anything and makes it obvious that the data is safe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/applications/wordcamp.php

    r2879 r2886  
    211211    $subject = "We've received your WordCamp application";
    212212    $headers = array( 'Reply-To: support@wordcamp.org' );
    213     $message = "Thank you for applying to organize WordCamp $wordcamp_name! We'll send you a follow-up e-mail once we've had a chance to review your application.";
     213    $message = sprintf(
     214        "Thank you for applying to organize WordCamp %s! We'll send you a follow-up e-mail once we've had a chance to review your application.",
     215        sanitize_text_field( $wordcamp_name )
     216    );
    214217
    215218    wp_mail( $email_address, $subject, $message, $headers );
Note: See TracChangeset for help on using the changeset viewer.