{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/7920","labels_url":"https://api.github.com/repos/laravel/framework/issues/7920/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/7920/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/7920/events","html_url":"https://github.com/laravel/framework/issues/7920","id":60260329,"number":7920,"title":"Route match problem when path contain %2f","user":{"login":"iodragon","id":1288550,"avatar_url":"https://avatars.githubusercontent.com/u/1288550?v=3","gravatar_id":"","url":"https://api.github.com/users/iodragon","html_url":"https://github.com/iodragon","followers_url":"https://api.github.com/users/iodragon/followers","following_url":"https://api.github.com/users/iodragon/following{/other_user}","gists_url":"https://api.github.com/users/iodragon/gists{/gist_id}","starred_url":"https://api.github.com/users/iodragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iodragon/subscriptions","organizations_url":"https://api.github.com/users/iodragon/orgs","repos_url":"https://api.github.com/users/iodragon/repos","events_url":"https://api.github.com/users/iodragon/events{/privacy}","received_events_url":"https://api.github.com/users/iodragon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-08T15:05:52Z","updated_at":"2015-03-08T15:05:52Z","closed_at":null,"body":"In `Illuminate\\Routing\\Route::bindPathParameters()`, `preg_match` is done by using `$request->decodedPath()`.\r\nThat would be an issue if the path contains %2f.\r\n\r\nFor example a url path like `/prefix/something/foo%bar`, the decodedPath would become `/prefix/something/foo/bar`, which used for matching url rule.\r\nIf there is a route rule in routes.php like:\r\n```\r\nRoute::get('prefix/{name}/{value}', function($name, $value)\r\n  {\r\n      //\r\n  })\r\n    ->where('name', '.+')\r\n    ->where('value', '.+');\r\n```\r\nThe parameters would became:\r\n```\r\narray{\r\n    'name' => 'something/foo',\r\n    'value' => 'bar'\r\n}\r\n```"}}