WordPress.org

Make WordPress Core

Changeset 10955


Ignore:
Timestamp:
04/16/2009 09:03:18 PM (11 years ago)
Author:
markjaquith
Message:

Return false for corrupted serialized strings. props Denis-de-Bernardy. fixes #9549

File:
1 edited

Legend:

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

    r10938 r10955  
    227227function maybe_unserialize( $original ) {
    228228    if ( is_serialized( $original ) ) // don't attempt to unserialize data that wasn't serialized going in
    229         if ( false !== $gm = @unserialize( $original ) )
    230             return $gm;
     229        return @unserialize( $original );
    231230    return $original;
    232231}
Note: See TracChangeset for help on using the changeset viewer.