Ticket #3537 (closed defect (bug): fixed)
Validate $wpdb->prefix complies with [a-zA-Z0-9_] restriction
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.0.7 |
| Component: | Administration | Version: | 2.0.6 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
$wpdb->prefix ($table_prefix in wp-config.php) has a [a-zA-Z0-9_] restriction, but it is not enforced. Characters out of this range will make WP spew errors. We should gracefully die and explain why.
We also should proabbly only enforce that if no alternate db.php file is in use.
Matt/Ryan, can we get 2.0.7 added as a version and 2.0.8 added as a milestone in Trac?
Change History
comment:1
markjaquith — 5 years ago
- Status changed from new to closed
- Resolution set to fixed
comment:2
markjaquith — 5 years ago
- Status changed from closed to reopened
- Resolution fixed deleted
- Milestone changed from 2.1 to 2.0.7
Porting to 2.0.x
comment:3
markjaquith — 5 years ago
- Status changed from reopened to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.

(In [4695]) Exit gracefully with a warning if the table_prefix uses disallowed chars. fixes #3537