mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
Previous sanitization techniques resulted in double-sanitization. Recent changes in how WP's SQL sanitization routines work have surfaced this problem, in particular as regards line breaks. By removing the extraneous call to esc_sql(), we ensure that line breaks are preserved, and sanitization is left to $wpdb->prepare(). Change applied in update_meta() functions through bp-groups, bp-activity, and bp-xprofile. Also adds corresponding unit tests. Fixes #5180 git-svn-id: https://buddypress.svn.wordpress.org/trunk@7469 cdf35c40-ae34-48e0-9cc9-0c9da1808c22 |
||
|---|---|---|
| .. | ||
| class-bp-xprofile-field.php | ||
| functions.php | ||