The Road to Magic Quotes Sanity
|Reported by:||ryan||Owned by:|
For back compat reasons, wp_magic_quotes() performs addslashes() on GPCS data. This is a pain, especially given that some core API expects slashes and some doesn't. In hopes of someday losing the automatic GPCS slashing, let's introduce a flag to turn off the slashing as well as slash and unslash functions that consult the flag. If slashing is on, these functions add and strip slashes. If slashing is off, they return data unchanged. Plugin authors can start using these functions and testing their code with GPCS slashing turned off and on. Eventually, GPCS slashing would default to off and all calls to the slash and unslash functions could be removed from core.
Change History (46)
comment:38 follow-up: ↓ 40 @dhjw — 18 months ago
comment:42 @chriscct7 — 5 weeks ago
- Keywords needs-patch dev-feedback added
- Severity changed from major to normal