From 13dc39717201533dd54b73864ed2212e57b9254e Mon Sep 17 00:00:00 2001 From: Bob Fanger Date: Fri, 21 Dec 2012 19:55:20 +0100 Subject: [PATCH] Added unittest for REQUEST_URI with multiple FQDNs. --- lib/Cake/Test/Case/Network/CakeRequestTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Cake/Test/Case/Network/CakeRequestTest.php b/lib/Cake/Test/Case/Network/CakeRequestTest.php index 8d7bcba4f..a9a0e7e37 100644 --- a/lib/Cake/Test/Case/Network/CakeRequestTest.php +++ b/lib/Cake/Test/Case/Network/CakeRequestTest.php @@ -140,6 +140,10 @@ class CakeRequestTest extends CakeTestCase { $_SERVER['REQUEST_URI'] = '/some/path?url=http://cakephp.org'; $request = new CakeRequest(); $this->assertEquals('some/path', $request->url); + + $_SERVER['REQUEST_URI'] = FULL_BASE_URL.'/other/path?url=http://cakephp.org'; + $request = new CakeRequest(); + $this->assertEquals('other/path', $request->url); } /**