#109 closed defect (bug) (fixed)
bp_is_serialized might be buggy
Reported by: | 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;
}
Fixed, thanks.