#32104 closed defect (bug) (fixed)
Import of data into database (starting from 4.1.2) fails
Reported by: | ewerkstatt | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.2.2 | Priority: | normal |
Severity: | normal | Version: | 4.1.2 |
Component: | Database | Keywords: | fixed-major |
Focuses: | Cc: |
Description
We created a plugin which imports data from an XML-file (UTF-8) into the WP-database (collation utf8_general_ci) using $wpdb->query("CREATE ....");.
Since version 4.1.2 the import fails due to the usage of german umlauts in field names. The problem persists also in 4.1.3.
The import is possible using wp-includes/wp-db.php from version 4.1.1.
Change History (11)
#2
@
9 years ago
- Milestone changed from Awaiting Review to 4.2.1
Note for when I look at a fix for this: it's probably failing because wpdb::strip_invalid_text_from_query()
fails if the table doesn't exist, which it won't for a CREATE
query.
I'm inclined to skip the check for queries that don't return user data, as we do with wpdb::check_safe_collation()
. (Though with CREATE
added to the regex, of course.)
This will need to be backported to 3.7.
Note: See
TracTickets for help on using
tickets.
Related: #32090