{"action":"closed","issue":{"number":116,"created_at":"2011-10-12T00:38:07Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"When accessed via file other than index.php, `Request::uri()` fails to return correct path string and returns the path string prepended by the name of the PHP file.\r\n\r\nThis behaviour happens only in the case when `PATH_INFO` is not set, i.e. when accessing base url with no trailing slashes appended.\r\n\r\nThis patch in `system/request.php` should allow other index files to work:\r\n\r\n    -        if (strpos($uri, $index = '/index.php') === 0)\r\n    +        if (strpos($uri, $index = '/' . Config::get('application.index') === 0)\r\n\r\nThe patch was tested against two cases:\r\n\r\n* The `application.index` being set to any filename (such as admin.php) \r\n* The `application.index` being set to an empty string with mod_rewrite enabled.\r\n\r\nWhen `application.index` is set to an empty string, accessing http://host/path/index.php will result in `Request::uri()` returning `index.php`, but since we use mod_rewrite and set `application.index` explicitly to an empty string, it's not much of an issue.\r\n\r\nDiscussion thread: http://forums.laravel.com/viewtopic.php?pid=2447","comments":1,"title":"Request::uri() fails to parse REQUEST_URI if accessed not by index.php","updated_at":"2011-10-12T02:42:27Z","url":"https://api.github.com/repos/laravel/laravel/issues/116","id":1883176,"assignee":null,"milestone":null,"closed_at":"2011-10-12T02:42:27Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/b23f581449085ebe3bab6b516cf4421c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/dragonee","id":937024,"login":"dragonee"},"html_url":"https://github.com/laravel/laravel/issues/116","labels":[],"state":"closed"},"legacy":{"number":116,"action":"closed","issue":1883176}}