WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#12622 closed defect (bug) (fixed)

$table_prefix should be validated upon entry

Reported by: johnl1479 Owned by: dd32
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Upgrade/Install Keywords: has-patch
Focuses: Cc:

Description

It appears that $table_prefix is validated to only contain letters, numbers, and underscores.

However, the user is not made aware of this requirement until after the wp-config file has been created.

If the user tries to enter a hyphen or other non-acceptable character, they should be alerted to this and be able to fix it before wp-config is generated.

Attachments (1)

12622.diff (634 bytes) - added by johnl1479 5 years ago.

Download all attachments as: .zip

Change History (4)

@johnl14795 years ago

comment:1 @johnl14795 years ago

  • Keywords has-patch added

Adding patch file

comment:2 @johnl14795 years ago

  • Milestone changed from Unassigned to 3.0

comment:3 @automattor5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13853]) Validate Table Prefix in wp-config.php generator. Props johnl1479. Fixes #12622

Note: See TracTickets for help on using tickets.