[wp-trac] [WordPress Trac] #34708: Empty DB_CHARSET leads to error in strip_invalid_text
WordPress Trac
noreply at wordpress.org
Tue Nov 17 06:12:10 UTC 2015
#34708: Empty DB_CHARSET leads to error in strip_invalid_text
--------------------------+---------------------
Reporter: rmccue | Owner: pento
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Database | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses:
--------------------------+---------------------
Changes (by pento):
* owner: => pento
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"35655"]:
{{{
#!CommitTicketReference repository="" revision="35655"
WPDB: Fall back to the connection charset when sanity checking strings.
If `DB_CHARSET` isn't defined (or is empty), `wpdb::$charset` will be
empty, too. `wpdb::strip_invalid_text()` assumes that it isn't empty,
however, so we need to fall back to the connection character set when
we're running our sanity checks.
Fixes #34708.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34708#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list