Opened 17 years ago
Closed 17 years ago
#11821 closed defect (bug) (fixed)
setup-config.php breaks UTF-8 in wp-config.php
| Reported by: | SergeyBiryukov | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Upgrade/Install | Version: | 2.9 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
[12663]