{"action":"created","issue":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/1319","repository_url":"https://api.github.com/repos/lhorie/mithril.js","labels_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1319/labels{/name}","comments_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1319/comments","events_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1319/events","html_url":"https://github.com/lhorie/mithril.js/pull/1319","id":177213323,"number":1319,"title":"[rewrite] queryString parse - Prevent undesired date parsing","user":{"login":"sdougbrown","id":2266707,"avatar_url":"https://avatars.githubusercontent.com/u/2266707?v=3","gravatar_id":"","url":"https://api.github.com/users/sdougbrown","html_url":"https://github.com/sdougbrown","followers_url":"https://api.github.com/users/sdougbrown/followers","following_url":"https://api.github.com/users/sdougbrown/following{/other_user}","gists_url":"https://api.github.com/users/sdougbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/sdougbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdougbrown/subscriptions","organizations_url":"https://api.github.com/users/sdougbrown/orgs","repos_url":"https://api.github.com/users/sdougbrown/repos","events_url":"https://api.github.com/users/sdougbrown/events{/privacy}","received_events_url":"https://api.github.com/users/sdougbrown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-15T15:44:35Z","updated_at":"2016-09-15T20:06:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lhorie/mithril.js/pulls/1319","html_url":"https://github.com/lhorie/mithril.js/pull/1319","diff_url":"https://github.com/lhorie/mithril.js/pull/1319.diff","patch_url":"https://github.com/lhorie/mithril.js/pull/1319.patch"},"body":"#### Case:\r\nRoute to:\r\n```\r\n/login?message=Please%20log%20in%20to%20view%20this%20page&previous=%2Fen%2Fedit%2F1\r\n```\r\nThe route contains a form that will set the path to the `previous` attr on successful login.  (Maybe this is a weird pattern but it seemed like a good idea at the time).\r\n\r\n#### Result:\r\n```\r\nTypeError: path.indexOf is not a function(…)\r\n```\r\n\r\n#### Cause:\r\n\r\nNative Date parsing is unpredictable and will occasionally turn a string\r\nlike \"/foo/1\" into a valid date of Jan 1, 2001.  This can be prevented\r\nby not parsing a string that begins with a slash.\r\n\r\nIt's likely that this is a rare case, but it's annoying when it does\r\ncome up.\r\n\r\nI wonder if there might be another issue hidden in here though - I'm not really sure why the path wouldn't be a string and therefore throw that type error."},"comment":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/comments/247438192","html_url":"https://github.com/lhorie/mithril.js/pull/1319#issuecomment-247438192","issue_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1319","id":247438192,"user":{"login":"sdougbrown","id":2266707,"avatar_url":"https://avatars.githubusercontent.com/u/2266707?v=3","gravatar_id":"","url":"https://api.github.com/users/sdougbrown","html_url":"https://github.com/sdougbrown","followers_url":"https://api.github.com/users/sdougbrown/followers","following_url":"https://api.github.com/users/sdougbrown/following{/other_user}","gists_url":"https://api.github.com/users/sdougbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/sdougbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdougbrown/subscriptions","organizations_url":"https://api.github.com/users/sdougbrown/orgs","repos_url":"https://api.github.com/users/sdougbrown/repos","events_url":"https://api.github.com/users/sdougbrown/events{/privacy}","received_events_url":"https://api.github.com/users/sdougbrown/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T20:06:37Z","updated_at":"2016-09-15T20:06:37Z","body":"Thanks @pygy - updated accordingly."}}
{"actor":{"display_login":"sdougbrown"}}