From a5958a289b94b6e851fa1997152771d4ed4b5c80 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov
Date: Thu, 8 Feb 2018 10:59:00 +0000
Subject: [PATCH] Upgrade/Install: Avoid extra line breaks in a textarea in
`wp-admin/setup-config.php`.
See #43252.
Built from https://develop.svn.wordpress.org/trunk@42672
git-svn-id: http://core.svn.wordpress.org/trunk@42500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/setup-config.php | 14 +++++++-------
wp-includes/version.php | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php
index d746fd6c64..ce844e93e5 100644
--- a/wp-admin/setup-config.php
+++ b/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' );
+ }
?>
-
+