-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strip null
(\x00) characters from the URLs in LinkAnnotations (issue 6832)
#6834
Conversation
null
(\x00) characters the URLs in LinkAnnotations (issue 6832)null
(\x00) characters from the URLs in LinkAnnotations (issue 6832)
…e 6832) Apparently some PDF files can have annotations with `URI` entries ending with `null` characters, thus breaking the links. To 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. Fixes 6832.
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/1791dad1de1d084/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/1791dad1de1d084/output.txt Total script time: 0.81 mins Published |
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/93673a00fee0287/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/919a7184c177f2a/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/93673a00fee0287/output.txt Total script time: 20.93 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/919a7184c177f2a/output.txt Total script time: 21.40 mins
|
Strip `null` (\x00) characters from the URLs in LinkAnnotations (issue 6832)
Thank you for the patch! It also fixed http://www.w3.org/WAI/WCAG20/Techniques/working-examples/PDF11/links.pdf. |
Apparently some PDF files can have annotations with
URI
entries ending withnull
characters, thus breaking the links.To handle this edge-case of bad PDFs, this patch moves the already existing utility function from
ui_utils.js
intoutil.js
, in order to fix those URLs.Fixes #6832.