From 02d8aa907a2692af73cd1f70c7580c6a754c2992 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov
Date: Thu, 8 Feb 2018 10:57:28 +0000
Subject: [PATCH] Upgrade/Install: Avoid extra line breaks in a textarea in
`wp-admin/setup-config.php`.
See #43252.
git-svn-id: https://develop.svn.wordpress.org/trunk@42672 602fd350-edb4-49c9-b593-d223f7449a82
---
src/wp-admin/setup-config.php | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php
index d746fd6c64..ce844e93e5 100644
--- a/src/wp-admin/setup-config.php
+++ b/src/wp-admin/setup-config.php
@@ -398,15 +398,15 @@ switch ( $step ) {
wp-config.php' );
+
+ $config_text = '';
+
+ foreach ( $config_file as $line ) {
+ $config_text .= htmlentities( $line, ENT_COMPAT, 'UTF-8' );
+ }
?>
-
+