WordPress.org

Make WordPress Core

Changeset 4395


Ignore:
Timestamp:
10/14/2006 05:35:27 AM (15 years ago)
Author:
markjaquith
Message:

Only run stripslashes() on strings in update_usermeta(). Props stm. fixes #3240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/functions.php

    r4384 r4395  
    22792279
    22802280    // FIXME: usermeta data is assumed to be already escaped
    2281     $meta_value = stripslashes($meta_value);
     2281    if ( is_string($meta_value) )
     2282        $meta_value = stripslashes($meta_value);
    22822283    $meta_value = maybe_serialize($meta_value);
    22832284    $meta_value = $wpdb->escape($meta_value);
Note: See TracChangeset for help on using the changeset viewer.