Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#12622 closed defect (bug) (fixed)

$table_prefix should be validated upon entry

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


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 14 years ago.

Download all attachments as: .zip

Change History (4)

14 years ago

#1 @johnl1479
14 years ago

  • Keywords has-patch added

Adding patch file

#2 @johnl1479
14 years ago

  • Milestone changed from Unassigned to 3.0

#3 @automattor
14 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.