WordPress.org

Make WordPress Core

Changeset 49131


Ignore:
Timestamp:
10/12/2020 07:08:24 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Rewrite Rules: Add missing newline to the HTTP_AUTHORIZATION rewrite rule.

Follow-up to [49109].

Props nendeb55, georgestephanis, johnbillion.
Fixes #51495. See #42790.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-rewrite.php

    r49109 r49131  
    15101510        $rules  = "<IfModule mod_rewrite.c>\n";
    15111511        $rules .= "RewriteEngine On\n";
    1512         $rules .= 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]';
     1512        $rules .= "RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\n";
    15131513        $rules .= "RewriteBase $home_root\n";
    15141514
Note: See TracChangeset for help on using the changeset viewer.