[buddypress-trac] [BuddyPress Trac] #9127: Critical error when updating xProfile fields through REST API using PHP 8+

buddypress-trac noreply at wordpress.org
Tue Apr 9 21:54:50 UTC 2024


#9127: Critical error when updating xProfile fields through REST API using PHP 8+
-------------------------------------------------+-------------------------
 Reporter:  niftythree                           |       Owner:
                                                 |  espellcaste
     Type:  defect (bug)                         |      Status:  new
 Priority:  low                                  |   Milestone:  14.0.0
Component:  REST API                             |     Version:  12.4.0
 Severity:  minor                                |  Resolution:
 Keywords:  has-unit-tests needs-testing-info    |
  has-dev-note has-patch                         |
-------------------------------------------------+-------------------------

Comment (by espellcaste):

 So, while testing this, the last suggestion is the better, and safer, one.
 Removing `stripslashes` all together was affecting non-serializable
 fields, like [https://github.com/buddypress/BP-REST/pull/497/files#diff-
 a8101ca7a57e9a331b6b201a69cdfaa5c65fc7d9750e1035b1255736bd13f96dR444 this
 example].

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9127#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list