Skip to content

Commit

Permalink
[zend-controller] update http rewrite header tests (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
npo-mmenke authored Sep 23, 2024
1 parent ffe34a9 commit 7d4b8fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Zend/Controller/Request/HttpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ public function testSetBaseUrlAutoDiscoveryUsingXRewriteUrl()
);
$request = new Zend_Controller_Request_Http();

$this->assertEquals('/index.php', $request->getBaseUrl());
// legacy rewrite headers should not be processed, see https://framework.zend.com/security/advisory/ZF2018-01
$this->assertEquals('', $request->getBaseUrl());
}

public function testSetBaseUrlAutoDiscoveryUsingXOriginalUrl()
Expand All @@ -561,7 +562,8 @@ public function testSetBaseUrlAutoDiscoveryUsingXOriginalUrl()
);
$request = new Zend_Controller_Request_Http();

$this->assertEquals('/index.php', $request->getBaseUrl());
// legacy rewrite headers should not be processed, see https://framework.zend.com/security/advisory/ZF2018-01
$this->assertEquals('', $request->getBaseUrl());
}

public function testSetBaseUrlAutoDiscoveryUsingOrigPathInfo()
Expand Down

0 comments on commit 7d4b8fe

Please sign in to comment.