{"action":"created","issue":{"url":"https://api.github.com/repos/hexchat/hexchat/issues/1586","labels_url":"https://api.github.com/repos/hexchat/hexchat/issues/1586/labels{/name}","comments_url":"https://api.github.com/repos/hexchat/hexchat/issues/1586/comments","events_url":"https://api.github.com/repos/hexchat/hexchat/issues/1586/events","html_url":"https://github.com/hexchat/hexchat/issues/1586","id":126981450,"number":1586,"title":"Leading space in URL causes program crash","user":{"login":"RollingStar","id":4810902,"avatar_url":"https://avatars.githubusercontent.com/u/4810902?v=3","gravatar_id":"","url":"https://api.github.com/users/RollingStar","html_url":"https://github.com/RollingStar","followers_url":"https://api.github.com/users/RollingStar/followers","following_url":"https://api.github.com/users/RollingStar/following{/other_user}","gists_url":"https://api.github.com/users/RollingStar/gists{/gist_id}","starred_url":"https://api.github.com/users/RollingStar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RollingStar/subscriptions","organizations_url":"https://api.github.com/users/RollingStar/orgs","repos_url":"https://api.github.com/users/RollingStar/repos","events_url":"https://api.github.com/users/RollingStar/events{/privacy}","received_events_url":"https://api.github.com/users/RollingStar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T23:46:20Z","updated_at":"2016-01-15T23:50:44Z","closed_at":"2016-01-15T23:50:44Z","body":"On WIndows 10 x64, Hexchat x64 2.10.2: \r\n\r\n1. Open the network list\r\n2. add a server called \"example-space\"\r\n3. edit\r\n4. change the server to\r\n\r\n```\r\n example.com\r\n^leading space\r\n```\r\n\r\nMake sure it starts with a space: `> example.com`. Try to connect to the server. After around 5 attempts, the entire program crashes. As far as I can tell this does not happen without the space; Hexchat merely fails to connect.\r\n\r\nAccording to [this](https://stackoverflow.com/questions/497908/is-a-url-allowed-to-contain-a-space), spaces don't belong in URLs anyway. Maybe Hexchat can strip them out?"},"comment":{"url":"https://api.github.com/repos/hexchat/hexchat/issues/comments/172128560","html_url":"https://github.com/hexchat/hexchat/issues/1586#issuecomment-172128560","issue_url":"https://api.github.com/repos/hexchat/hexchat/issues/1586","id":172128560,"user":{"login":"TingPing","id":798838,"avatar_url":"https://avatars.githubusercontent.com/u/798838?v=3","gravatar_id":"","url":"https://api.github.com/users/TingPing","html_url":"https://github.com/TingPing","followers_url":"https://api.github.com/users/TingPing/followers","following_url":"https://api.github.com/users/TingPing/following{/other_user}","gists_url":"https://api.github.com/users/TingPing/gists{/gist_id}","starred_url":"https://api.github.com/users/TingPing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TingPing/subscriptions","organizations_url":"https://api.github.com/users/TingPing/orgs","repos_url":"https://api.github.com/users/TingPing/repos","events_url":"https://api.github.com/users/TingPing/events{/privacy}","received_events_url":"https://api.github.com/users/TingPing/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T23:50:44Z","updated_at":"2016-01-15T23:50:44Z","body":"Duplicate of #600"}}