{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/6834","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6834/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6834/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6834/events","html_url":"https://github.com/mozilla/pdf.js/pull/6834","id":124835430,"number":6834,"title":"Strip `null` (\\x00) characters from the URLs in LinkAnnotations (issue 6832)","user":{"login":"Snuffleupagus","id":2692120,"avatar_url":"https://avatars.githubusercontent.com/u/2692120?v=3","gravatar_id":"","url":"https://api.github.com/users/Snuffleupagus","html_url":"https://github.com/Snuffleupagus","followers_url":"https://api.github.com/users/Snuffleupagus/followers","following_url":"https://api.github.com/users/Snuffleupagus/following{/other_user}","gists_url":"https://api.github.com/users/Snuffleupagus/gists{/gist_id}","starred_url":"https://api.github.com/users/Snuffleupagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Snuffleupagus/subscriptions","organizations_url":"https://api.github.com/users/Snuffleupagus/orgs","repos_url":"https://api.github.com/users/Snuffleupagus/repos","events_url":"https://api.github.com/users/Snuffleupagus/events{/privacy}","received_events_url":"https://api.github.com/users/Snuffleupagus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/pdf.js/labels/4-annotations","name":"4-annotations","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-04T20:44:42Z","updated_at":"2016-01-05T22:59:40Z","closed_at":"2016-01-05T22:59:26Z","pull_request":{"url":"https://api.github.com/repos/mozilla/pdf.js/pulls/6834","html_url":"https://github.com/mozilla/pdf.js/pull/6834","diff_url":"https://github.com/mozilla/pdf.js/pull/6834.diff","patch_url":"https://github.com/mozilla/pdf.js/pull/6834.patch"},"body":"Apparently some PDF files can have annotations with `URI` entries ending with `null` characters, thus breaking the links.\r\nTo handle this edge-case of bad PDFs, this patch moves the already existing utility function from `ui_utils.js` into `util.js`, in order to fix those URLs.\r\n\r\nFixes #6832."},"comment":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/169161851","html_url":"https://github.com/mozilla/pdf.js/pull/6834#issuecomment-169161851","issue_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6834","id":169161851,"user":{"login":"timvandermeij","id":1993262,"avatar_url":"https://avatars.githubusercontent.com/u/1993262?v=3","gravatar_id":"","url":"https://api.github.com/users/timvandermeij","html_url":"https://github.com/timvandermeij","followers_url":"https://api.github.com/users/timvandermeij/followers","following_url":"https://api.github.com/users/timvandermeij/following{/other_user}","gists_url":"https://api.github.com/users/timvandermeij/gists{/gist_id}","starred_url":"https://api.github.com/users/timvandermeij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvandermeij/subscriptions","organizations_url":"https://api.github.com/users/timvandermeij/orgs","repos_url":"https://api.github.com/users/timvandermeij/repos","events_url":"https://api.github.com/users/timvandermeij/events{/privacy}","received_events_url":"https://api.github.com/users/timvandermeij/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T22:59:40Z","updated_at":"2016-01-05T22:59:40Z","body":"Thank you for this patch! It also fixed http://www.w3.org/WAI/WCAG20/Techniques/working-examples/PDF11/links.pdf."}}