{"action":"opened","issue":{"url":"https://api.github.com/repos/maxdeviant/drop/issues/1","labels_url":"https://api.github.com/repos/maxdeviant/drop/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/maxdeviant/drop/issues/1/comments","events_url":"https://api.github.com/repos/maxdeviant/drop/issues/1/events","html_url":"https://github.com/maxdeviant/drop/issues/1","id":55281697,"number":1,"title":"Variations on URL create duplicate database records","user":{"login":"maxdeviant","id":1486634,"avatar_url":"https://avatars.githubusercontent.com/u/1486634?v=3","gravatar_id":"","url":"https://api.github.com/users/maxdeviant","html_url":"https://github.com/maxdeviant","followers_url":"https://api.github.com/users/maxdeviant/followers","following_url":"https://api.github.com/users/maxdeviant/following{/other_user}","gists_url":"https://api.github.com/users/maxdeviant/gists{/gist_id}","starred_url":"https://api.github.com/users/maxdeviant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxdeviant/subscriptions","organizations_url":"https://api.github.com/users/maxdeviant/orgs","repos_url":"https://api.github.com/users/maxdeviant/repos","events_url":"https://api.github.com/users/maxdeviant/events{/privacy}","received_events_url":"https://api.github.com/users/maxdeviant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/maxdeviant/drop/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-23T13:34:44Z","updated_at":"2015-01-23T13:34:44Z","closed_at":null,"body":"Variations on a URL, such as `http://drop.elliott.codes//i/faff1d9410adf3161446d00fb0c4d107.jpg` or `http://drop.elliott.codes///i/faff1d9410adf3161446d00fb0c4d107.jpg` both resolve to the proper file (`http://drop.elliott.codes/i/faff1d9410adf3161446d00fb0c4d107.jpg`), but are seen as separate entries when creating a hit record in the database.\r\n\r\nProbably just need to add some string sanitization [here](https://github.com/maxdeviant/drop/blob/master/drop.js#L186) to remove variations on a URL that do not identify a different file."}}