Ticket #5546 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

Variable expansion in error message

Reported by: takayukister Owned by: anonymous
Priority: normal Milestone: 2.5
Component: General Version: 2.5
Severity: trivial Keywords: has-patch
Cc:

Description

When you define $table_prefix as any string including invalid letter, like '-+*!testtest', in wp-config.php and access any page on the site, it shows error message "ERROR: -+*!testtest in wp-config.php can only contain numbers, letters, and underscores." Shouldn't it be "ERROR: $table_prefix in wp-config.php can only contain numbers, letters, and underscores."?

Attachments

wpsettings.diff Download (676 bytes) - added by takayukister 4 years ago.
single-quoted

Change History

single-quoted

comment:1   DD324 years ago

  • Keywords has-patch added
  • Milestone changed from 2.5 to 2.4
  • Status changed from new to closed
  • Resolution set to fixed

(In [6522]) Use ' not " so we don't expand. Fixes #5546 props takayukister.

Note: See TracTickets for help on using tickets.