mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -1509,7 +1509,7 @@ class WP_Rewrite {
|
||||
|
||||
$rules = "<IfModule mod_rewrite.c>\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.
|
||||
|
||||
Reference in New Issue
Block a user