Ticket #19253: fix-case-sensitive-home-url.patch
| File fix-case-sensitive-home-url.patch, 932 bytes (added by Omicron7, 19 months ago) |
|---|
-
wp-includes/class-wp.php
161 161 // requested permalink. 162 162 $req_uri = str_replace($pathinfo, '', $req_uri); 163 163 $req_uri = trim($req_uri, '/'); 164 $req_uri = preg_replace("|^$home_path| ", '', $req_uri);164 $req_uri = preg_replace("|^$home_path|i", '', $req_uri); 165 165 $req_uri = trim($req_uri, '/'); 166 166 $pathinfo = trim($pathinfo, '/'); 167 $pathinfo = preg_replace("|^$home_path| ", '', $pathinfo);167 $pathinfo = preg_replace("|^$home_path|i", '', $pathinfo); 168 168 $pathinfo = trim($pathinfo, '/'); 169 169 $self = trim($self, '/'); 170 $self = preg_replace("|^$home_path| ", '', $self);170 $self = preg_replace("|^$home_path|i", '', $self); 171 171 $self = trim($self, '/'); 172 172 173 173 // The requested permalink is in $pathinfo for path info requests and
