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.0.14
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.0.0
5
11
-----
6
12
Original file line number Diff line number Diff line change @@ -1691,18 +1691,7 @@ protected function prepareRequestUri()
1691
1691
{
1692
1692
$ requestUri = '' ;
1693
1693
1694
- if ($ this ->headers ->has ('X_ORIGINAL_URL ' )) {
1695
- // IIS with Microsoft Rewrite Module
1696
- $ requestUri = $ this ->headers ->get ('X_ORIGINAL_URL ' );
1697
- $ this ->headers ->remove ('X_ORIGINAL_URL ' );
1698
- $ this ->server ->remove ('HTTP_X_ORIGINAL_URL ' );
1699
- $ this ->server ->remove ('UNENCODED_URL ' );
1700
- $ this ->server ->remove ('IIS_WasUrlRewritten ' );
1701
- } elseif ($ this ->headers ->has ('X_REWRITE_URL ' )) {
1702
- // IIS with ISAPI_Rewrite
1703
- $ requestUri = $ this ->headers ->get ('X_REWRITE_URL ' );
1704
- $ this ->headers ->remove ('X_REWRITE_URL ' );
1705
- } elseif ('1 ' == $ this ->server ->get ('IIS_WasUrlRewritten ' ) && '' != $ this ->server ->get ('UNENCODED_URL ' )) {
1694
+ if ('1 ' == $ this ->server ->get ('IIS_WasUrlRewritten ' ) && '' != $ this ->server ->get ('UNENCODED_URL ' )) {
1706
1695
// IIS7 with URL Rewrite: make sure we get the unencoded URL (double slash problem)
1707
1696
$ requestUri = $ this ->server ->get ('UNENCODED_URL ' );
1708
1697
$ this ->server ->remove ('UNENCODED_URL ' );
Original file line number Diff line number Diff line change @@ -1822,52 +1822,8 @@ public function iisRequestUriProvider()
1822
1822
{
1823
1823
return array (
1824
1824
array (
1825
- array (
1826
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1827
- ),
1828
- array (),
1829
- '/foo/bar ' ,
1830
- ),
1831
- array (
1832
- array (
1833
- 'X_REWRITE_URL ' => '/foo/bar ' ,
1834
- ),
1835
1825
array (),
1836
- '/foo/bar ' ,
1837
- ),
1838
- array (
1839
- array (),
1840
- array (
1841
- 'IIS_WasUrlRewritten ' => '1 ' ,
1842
- 'UNENCODED_URL ' => '/foo/bar ' ,
1843
- ),
1844
- '/foo/bar ' ,
1845
- ),
1846
- array (
1847
- array (
1848
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1849
- ),
1850
- array (
1851
- 'HTTP_X_ORIGINAL_URL ' => '/foo/bar ' ,
1852
- ),
1853
- '/foo/bar ' ,
1854
- ),
1855
- array (
1856
- array (
1857
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1858
- ),
1859
- array (
1860
- 'IIS_WasUrlRewritten ' => '1 ' ,
1861
- 'UNENCODED_URL ' => '/foo/bar ' ,
1862
- ),
1863
- '/foo/bar ' ,
1864
- ),
1865
- array (
1866
- array (
1867
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1868
- ),
1869
1826
array (
1870
- 'HTTP_X_ORIGINAL_URL ' => '/foo/bar ' ,
1871
1827
'IIS_WasUrlRewritten ' => '1 ' ,
1872
1828
'UNENCODED_URL ' => '/foo/bar ' ,
1873
1829
),
You can’t perform that action at this time.
0 commit comments