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
+ 2.8.44
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
2.8.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 @@ -1809,52 +1809,8 @@ public function iisRequestUriProvider()
1809
1809
{
1810
1810
return array (
1811
1811
array (
1812
- array (
1813
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1814
- ),
1815
- array (),
1816
- '/foo/bar ' ,
1817
- ),
1818
- array (
1819
- array (
1820
- 'X_REWRITE_URL ' => '/foo/bar ' ,
1821
- ),
1822
1812
array (),
1823
- '/foo/bar ' ,
1824
- ),
1825
- array (
1826
- array (),
1827
- array (
1828
- 'IIS_WasUrlRewritten ' => '1 ' ,
1829
- 'UNENCODED_URL ' => '/foo/bar ' ,
1830
- ),
1831
- '/foo/bar ' ,
1832
- ),
1833
- array (
1834
- array (
1835
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1836
- ),
1837
- array (
1838
- 'HTTP_X_ORIGINAL_URL ' => '/foo/bar ' ,
1839
- ),
1840
- '/foo/bar ' ,
1841
- ),
1842
- array (
1843
- array (
1844
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1845
- ),
1846
- array (
1847
- 'IIS_WasUrlRewritten ' => '1 ' ,
1848
- 'UNENCODED_URL ' => '/foo/bar ' ,
1849
- ),
1850
- '/foo/bar ' ,
1851
- ),
1852
- array (
1853
- array (
1854
- 'X_ORIGINAL_URL ' => '/foo/bar ' ,
1855
- ),
1856
1813
array (
1857
- 'HTTP_X_ORIGINAL_URL ' => '/foo/bar ' ,
1858
1814
'IIS_WasUrlRewritten ' => '1 ' ,
1859
1815
'UNENCODED_URL ' => '/foo/bar ' ,
1860
1816
),
You can’t perform that action at this time.
0 commit comments