WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#11821 closed defect (bug) (fixed)

setup-config.php breaks UTF-8 in wp-config.php

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

Description

This code is currently used in setup-config.php to display a wp-config.php content:

foreach( $configFile as $line ) {
	echo htmlentities($line);
}

It makes non-English comments unreadable. It probably should be:

foreach( $configFile as $line ) {
	echo htmlentities($line, ENT_COMPAT, 'UTF-8');
}

Thanks to Lecactus for the report.

Attachments (1)

11821.diff (819 bytes) - added by Denis-de-Bernardy 5 years ago.

Download all attachments as: .zip

Change History (3)

@Denis-de-Bernardy5 years ago

comment:1 @Denis-de-Bernardy5 years ago

  • Keywords has-patch added
  • Milestone changed from Unassigned to 3.0
  • Version set to 2.9

comment:2 @ryan5 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.