Bug Fixes
- The Markdown routes no longer execute
index.htmlas a template. Gotenberg reads the page and replaces each{{ toHTML "<file>" }}with its Markdown, so a page can no longer loop or recurse until it exhausts the CPU or the memory, past--api-timeout. The page holds text andtoHTMLactions only, each Markdown file named once: anything else, or a file named twice, answers400with its position. Thanks @mccahan. - Page selections, form fields and archive filenames stay within what the request holds. A page selection lists each page once, however many times it names it, and an invalid range fails before any page is expanded, split ranges included. Split writes its parts one at a time and stops at the deadline.
/forms/pdf/formand repeated filenames no longer cost time that grows with the square of their input, and archive extraction stops at the deadline. Thanks @mccahan. - Chromium has no DevTools port anymore. Gotenberg drives it over
--remote-debugging-pipe, so a page can neither list other conversions nor close their tabs. Thanks @mccahan. - Web workers no longer read
file://URLs. With--chromium-allow-file-access-from-files, a dedicated, nested, shared or service worker could read files outside its request. Workers now start locked out offile://URLs, while the page keeps the files of its own request. Thanks @mccahan. - A handler that outlives its hard timeout can no longer write into another request's response. Thanks @mccahan.