{"action":"created","issue":{"url":"https://api.github.com/repos/BCcampus/eypd/issues/120","repository_url":"https://api.github.com/repos/BCcampus/eypd","labels_url":"https://api.github.com/repos/BCcampus/eypd/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/BCcampus/eypd/issues/120/comments","events_url":"https://api.github.com/repos/BCcampus/eypd/issues/120/events","html_url":"https://github.com/BCcampus/eypd/issues/120","id":222802012,"node_id":"MDU6SXNzdWUyMjI4MDIwMTI=","number":120,"title":"Ensure Registration link is a valid URL","user":{"login":"bdolor","id":2048170,"node_id":"MDQ6VXNlcjIwNDgxNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/2048170?v=4","gravatar_id":"","url":"https://api.github.com/users/bdolor","html_url":"https://github.com/bdolor","followers_url":"https://api.github.com/users/bdolor/followers","following_url":"https://api.github.com/users/bdolor/following{/other_user}","gists_url":"https://api.github.com/users/bdolor/gists{/gist_id}","starred_url":"https://api.github.com/users/bdolor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdolor/subscriptions","organizations_url":"https://api.github.com/users/bdolor/orgs","repos_url":"https://api.github.com/users/bdolor/repos","events_url":"https://api.github.com/users/bdolor/events{/privacy}","received_events_url":"https://api.github.com/users/bdolor/received_events","type":"User","site_admin":false},"labels":[{"id":331393705,"node_id":"MDU6TGFiZWwzMzEzOTM3MDU=","url":"https://api.github.com/repos/BCcampus/eypd/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-19T16:51:10Z","updated_at":"2018-11-29T22:40:18Z","closed_at":null,"author_association":"MEMBER","body":"This line https://github.com/BCcampus/eypd/blob/dev/plugins/events-manager/templates/event-single.php#L22 singles out 'Registration Link' and forces it to be hyperlinked without checking to see if a valid protocol (http/https) is set. \r\n\r\nWould like to put in a check to see that the link provided is a valid url to avoid creating links like `<a href=\"www.somedomain.com\">www.somedomain.com</a>`\r\n"},"comment":{"url":"https://api.github.com/repos/BCcampus/eypd/issues/comments/443020875","html_url":"https://github.com/BCcampus/eypd/issues/120#issuecomment-443020875","issue_url":"https://api.github.com/repos/BCcampus/eypd/issues/120","id":443020875,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzAyMDg3NQ==","user":{"login":"paulagaube","id":26391359,"node_id":"MDQ6VXNlcjI2MzkxMzU5","avatar_url":"https://avatars1.githubusercontent.com/u/26391359?v=4","gravatar_id":"","url":"https://api.github.com/users/paulagaube","html_url":"https://github.com/paulagaube","followers_url":"https://api.github.com/users/paulagaube/followers","following_url":"https://api.github.com/users/paulagaube/following{/other_user}","gists_url":"https://api.github.com/users/paulagaube/gists{/gist_id}","starred_url":"https://api.github.com/users/paulagaube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulagaube/subscriptions","organizations_url":"https://api.github.com/users/paulagaube/orgs","repos_url":"https://api.github.com/users/paulagaube/repos","events_url":"https://api.github.com/users/paulagaube/events{/privacy}","received_events_url":"https://api.github.com/users/paulagaube/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T22:40:18Z","updated_at":"2018-11-29T22:40:18Z","author_association":"NONE","body":"@bdolor I just tried to add an event without anything in the \"Registration Link\" field, and was unable to Post the event. I received the error message you showed above, which is: \"Registration Link is not a valid URL\". \r\n\r\nSince this is not a \"required\" field, (i.e., there is no asterisk* after the text Registration Link and the text below says \"if available\"): I believe leaving this field empty must also be allowed without generating an error message. @kathreenriel your thoughts? It's possible that an event will not have a web URL, is that correct?"}}
{"actor":{"display_login":"paulagaube"}}