File tree 3 files changed +7
-56
lines changed
3 files changed +7
-56
lines changed Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=========
3
3
4
+ 4.1.3
5
+ -----
6
+
7
+ * [ BC BREAK] Support for the IIS-only ` X_ORIGINAL_URL ` and ` X_REWRITE_URL `
8
+ HTTP headers has been dropped for security reasons.
9
+
4
10
4.1.0
5
11
-----
6
12
Original file line number Diff line number Diff line change @@ -1688,18 +1688,7 @@ protected function prepareRequestUri()
1688
1688
{
1689
1689
$ requestUri = '' ;
1690
1690
1691
- if ($ this ->headers ->has ('X_ORIGINAL_URL ' )) {
1692
- // IIS with Microsoft Rewrite Module
1693
- $ requestUri = $ this ->headers ->get ('X_ORIGINAL_URL ' );
1694
- $ this ->headers ->remove ('X_ORIGINAL_URL ' );
1695
- $ this ->server ->remove ('HTTP_X_ORIGINAL_URL ' );
1696
- $ this ->server ->remove ('UNENCODED_URL ' );
1697
- $ this ->server ->remove ('IIS_WasUrlRewritten ' );
1698
- } elseif ($ this ->headers ->has ('X_REWRITE_URL ' )) {
1699
- // IIS with ISAPI_Rewrite
1700
- $ requestUri = $ this ->headers ->get ('X_REWRITE_URL ' );
1701
- $ this ->headers ->remove ('X_REWRITE_URL ' );
1702
- } elseif ('1 ' == $ this ->server ->get ('IIS_WasUrlRewritten ' ) && '' != $ this ->server ->get ('UNENCODED_URL ' )) {
1691
+ if ('1 ' == $ this ->server ->get ('IIS_WasUrlRewritten ' ) && '' != $ this ->server ->get ('UNENCODED_URL ' )) {
1703
1692
// IIS7 with URL Rewrite: make sure we get the unencoded URL (double slash problem)
1704
1693
$ requestUri = $ this ->server ->get ('UNENCODED_URL ' );
1705
1694
$ this ->server ->remove ('UNENCODED_URL ' );
Original file line number Diff line number Diff line change @@ -1837,52 +1837,8 @@ public function iisRequestUriProvider()
1837
1837
{
1838
1838
return array (
1839
1839
array (
1840
- array (
1841
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1842
- ),
1843
- array (),
1844
- '/foo/bar ' ,
1845
- ),
1846
- array (
1847
- array (
1848
- 'X_REWRITE_URL ' => '/foo/bar ' ,
1849
- ),
1850
1840
array (),
1851
- '/foo/bar ' ,
1852
- ),
1853
- array (
1854
- array (),
1855
- array (
1856
- 'IIS_WasUrlRewritten ' => '1 ' ,
1857
- 'UNENCODED_URL ' => '/foo/bar ' ,
1858
- ),
1859
- '/foo/bar ' ,
1860
- ),
1861
- array (
1862
- array (
1863
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1864
- ),
1865
- array (
1866
- 'HTTP_X_ORIGINAL_URL ' => '/foo/bar ' ,
1867
- ),
1868
- '/foo/bar ' ,
1869
- ),
1870
- array (
1871
- array (
1872
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1873
- ),
1874
- array (
1875
- 'IIS_WasUrlRewritten ' => '1 ' ,
1876
- 'UNENCODED_URL ' => '/foo/bar ' ,
1877
- ),
1878
- '/foo/bar ' ,
1879
- ),
1880
- array (
1881
- array (
1882
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1883
- ),
1884
1841
array (
1885
- 'HTTP_X_ORIGINAL_URL ' => '/foo/bar ' ,
1886
1842
'IIS_WasUrlRewritten ' => '1 ' ,
1887
1843
'UNENCODED_URL ' => '/foo/bar ' ,
1888
1844
),
You can’t perform that action at this time.
0 commit comments