Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#109 closed defect (bug) (fixed)

bp_is_serialized might be buggy

Reported by: phlux0r's profile phlux0r Owned by:
Milestone: Priority: critical
Severity: Version:
Component: Keywords: profile, field value
Cc:

Description

in bp-xprofile-templatetags.php line 208 there is a call to bp_is_serialized() however, if the data field contains certain characters (couldn't identify which) this function would return true on a non-serialized item hence, the value would be nuked and the field not properly displayed.

Suggested change:

if ( is_serialized($field->data->value) ) { changed to WP is_serialized call

$field_value = maybe_unserialize($field->data->value); using maybe_unserialize!!
$field_value = implode( ", ", $field_value );
$field->data->value = $field_value;

}

Change History (2)

#1 @apeatling
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed, thanks.

#2 @(none)
15 years ago

  • Milestone Extended Profiles - v0.3 deleted

Milestone Extended Profiles - v0.3 deleted

Note: See TracTickets for help on using tickets.