Make WordPress Core


Ignore:
Timestamp:
10/10/2008 09:40:30 AM (16 years ago)
Author:
azaozz
Message:

Fix escaping of post meta, props DD32, fixes #7768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r9106 r9116  
    520520    // expected_slashed ($meta_key)
    521521    $meta_key = stripslashes($meta_key);
     522    $meta_value = stripslashes($meta_value);
    522523
    523524    if ( $unique && $wpdb->get_var( $wpdb->prepare( "SELECT meta_key FROM $wpdb->postmeta WHERE meta_key = %s AND post_id = %d", $meta_key, $post_id ) ) )
     
    632633    // expected_slashed ($meta_key)
    633634    $meta_key = stripslashes($meta_key);
     635    $meta_value = stripslashes($meta_value);
    634636
    635637    if ( ! $wpdb->get_var( $wpdb->prepare( "SELECT meta_key FROM $wpdb->postmeta WHERE meta_key = %s AND post_id = %d", $meta_key, $post_id ) ) ) {
Note: See TracChangeset for help on using the changeset viewer.