Make WordPress Core

Ticket #55855: 55855.patch

File 55855.patch, 573 bytes (added by smit08, 2 years ago)

I have solved the sanitize data in one place by using filter_input. Please review it and if its in proper way then i will change it for whole file.

  • src/wp-admin/includes/ajax-actions.php

     
    28012801 * @deprecated 4.3.0
    28022802 */
    28032803function wp_ajax_wp_fullscreen_save_post() {
    2804         $post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0;
     2804        $post_id = filter_input(INPUT_POST, 'post_ID', FILTER_SANITIZE_STRING) !== null ? (int) filter_input(INPUT_POST, 'post_ID', FILTER_SANITIZE_STRING) : 0;
    28052805
    28062806        $post = null;
    28072807