WordPress.org

Make WordPress Core

Changeset 27305


Ignore:
Timestamp:
02/27/2014 12:04:45 AM (6 years ago)
Author:
nacin
Message:

Unslash in the time-format and date-format ajax endpoints.

props GregLone.
fixes #27216.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r27046 r27305  
    17141714
    17151715function wp_ajax_date_format() {
    1716     wp_die( date_i18n( sanitize_option( 'date_format', $_POST['date'] ) ) );
     1716    wp_die( date_i18n( sanitize_option( 'date_format', wp_unslash( $_POST['date'] ) ) ) );
    17171717}
    17181718
    17191719function wp_ajax_time_format() {
    1720     wp_die( date_i18n( sanitize_option( 'time_format', $_POST['date'] ) ) );
     1720    wp_die( date_i18n( sanitize_option( 'time_format', wp_unslash( $_POST['date'] ) ) ) );
    17211721}
    17221722
Note: See TracChangeset for help on using the changeset viewer.