File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed
Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,6 @@ public static function createFromEnvironment(Environment $env)
203203 // parse_url() requires a full URL. As we don't extract the domain name or scheme,
204204 // we use a stand-in.
205205 $ requestUri = parse_url ('http://example.com ' . $ env ->get ('REQUEST_URI ' ), PHP_URL_PATH );
206- $ requestUri = rawurldecode ($ requestUri );
207206
208207 $ basePath = '' ;
209208 $ virtualPath = $ requestUri ;
Original file line number Diff line number Diff line change @@ -562,20 +562,6 @@ public function testCreateEnvironmentWithBasePath()
562562 $ this ->assertEquals ('http://localhost/foo/bar ' , (string ) $ uri );
563563 }
564564
565- public function testCreateEnvironmentWithBasePathContainingSpace ()
566- {
567- $ environment = Environment::mock ([
568- 'SCRIPT_NAME ' => "/f'oo bar/index.php " ,
569- 'REQUEST_URI ' => "/f'oo%20bar/baz " ,
570- ]);
571- $ uri = Uri::createFromEnvironment ($ environment );
572-
573- $ this ->assertEquals ("/f%27oo%20bar " , $ uri ->getBasePath ());
574- $ this ->assertEquals ('baz ' , $ uri ->getPath ());
575-
576- $ this ->assertEquals ('http://localhost/f%27oo%20bar/baz ' , (string ) $ uri );
577- }
578-
579565 public function testGetBaseUrl ()
580566 {
581567 $ environment = Environment::mock ([
You can’t perform that action at this time.
0 commit comments