{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/call/issues/16","labels_url":"https://api.github.com/repos/hapijs/call/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/call/issues/16/comments","events_url":"https://api.github.com/repos/hapijs/call/issues/16/events","html_url":"https://github.com/hapijs/call/pull/16","id":112832683,"number":16,"title":"fix TypeError if path /constructor/foo is accessed","user":{"login":"rndstr","id":32963,"avatar_url":"https://avatars.githubusercontent.com/u/32963?v=3","gravatar_id":"","url":"https://api.github.com/users/rndstr","html_url":"https://github.com/rndstr","followers_url":"https://api.github.com/users/rndstr/followers","following_url":"https://api.github.com/users/rndstr/following{/other_user}","gists_url":"https://api.github.com/users/rndstr/gists{/gist_id}","starred_url":"https://api.github.com/users/rndstr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rndstr/subscriptions","organizations_url":"https://api.github.com/users/rndstr/orgs","repos_url":"https://api.github.com/users/rndstr/repos","events_url":"https://api.github.com/users/rndstr/events{/privacy}","received_events_url":"https://api.github.com/users/rndstr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-22T15:45:50Z","updated_at":"2015-10-22T17:54:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hapijs/call/pulls/16","html_url":"https://github.com/hapijs/call/pull/16","diff_url":"https://github.com/hapijs/call/pull/16.diff","patch_url":"https://github.com/hapijs/call/pull/16.patch"},"body":"If there are any literals available in the router, then any access to a path with\r\nmultiple segments and its first segment an object prototype property, lead to a\r\nTypeError.\r\n\r\nThis fixes these TypeErrors by checking whether the property is the literal list's own.\r\n\r\nThere is a similar code path for the `this._fulls` but the path always contains a leading slash,\r\nthus is not vulnerable to such error.\r\n\r\n```\r\nDebug: internal, implementation, error\r\n    TypeError: match.lookup is not a function\r\n    at Object.internals.deeper (/some-project/node_modules/hapi/node_modules/call/lib/segment.js:240:28)\r\n    at internals.Segment.lookup (/some-project/node_modules/hapi/node_modules/call/lib/segment.js:177:36)\r\n    at internals.Router._lookup (/some-project/node_modules/hapi/node_modules/call/lib/index.js:113:28)\r\n    at internals.Router.route (/some-project/node_modules/hapi/node_modules/call/lib/index.js:94:22)\r\n    at internals.Request._lifecycle (/some-project/node_modules/hapi/lib/request.js:343:41)\r\n    at internals.Request._execute (/some-project/node_modules/hapi/lib/request.js:312:21)\r\n    at Domain.<anonymous> (/some-project/node_modules/hapi/lib/connection.js:253:25)\r\n    at Domain.run (domain.js:191:14)\r\n    at internals.Protect.enter (/some-project/node_modules/hapi/lib/protect.js:84:17)\r\n    at Server.internals.Connection._dispatch (/some-project/node_modules/hapi/lib/connection.js:251:30)\r\n```"},"comment":{"url":"https://api.github.com/repos/hapijs/call/issues/comments/150305452","html_url":"https://github.com/hapijs/call/pull/16#issuecomment-150305452","issue_url":"https://api.github.com/repos/hapijs/call/issues/16","id":150305452,"user":{"login":"devinivy","id":3150233,"avatar_url":"https://avatars.githubusercontent.com/u/3150233?v=3","gravatar_id":"","url":"https://api.github.com/users/devinivy","html_url":"https://github.com/devinivy","followers_url":"https://api.github.com/users/devinivy/followers","following_url":"https://api.github.com/users/devinivy/following{/other_user}","gists_url":"https://api.github.com/users/devinivy/gists{/gist_id}","starred_url":"https://api.github.com/users/devinivy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinivy/subscriptions","organizations_url":"https://api.github.com/users/devinivy/orgs","repos_url":"https://api.github.com/users/devinivy/repos","events_url":"https://api.github.com/users/devinivy/events{/privacy}","received_events_url":"https://api.github.com/users/devinivy/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T17:54:20Z","updated_at":"2015-10-22T17:54:20Z","body":"Haha, interesting!  Looks good to me."}}