From 405a56130199d41d4004d29105b73083ad8ebe4d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 12 Oct 2020 19:08:24 +0000 Subject: [PATCH] Rewrite Rules: Add missing newline to the `HTTP_AUTHORIZATION` rewrite rule. Follow-up to [49109]. Props nendeb55, georgestephanis, johnbillion. Fixes #51495. See #42790. git-svn-id: https://develop.svn.wordpress.org/trunk@49131 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-rewrite.php b/src/wp-includes/class-wp-rewrite.php index c5de10bb6d..729ddf3663 100644 --- a/src/wp-includes/class-wp-rewrite.php +++ b/src/wp-includes/class-wp-rewrite.php @@ -1509,7 +1509,7 @@ class WP_Rewrite { $rules = "\n"; $rules .= "RewriteEngine On\n"; - $rules .= 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]'; + $rules .= "RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\n"; $rules .= "RewriteBase $home_root\n"; // Prevent -f checks on index.php.