Skip to content

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

TypeScript
830 B
Raw Blame

important: security

make-pdf no longer lets a NUL character hide an onerror handler, a javascript: link or a <script> tag from its sanitizer. The typography pass drops U+0000 after the sanitizer has run, so on\u0000error= became a live onerror in the print browser; the sanitizer now drops NUL first. Removing a handler could also join the two halves of a tag name, so <scr onx="a"ipt> came out as a live <script>; the sanitizer now repeats until its output stops changing. Removing a handler or a javascript: link also keeps the page's structure. Handler-looking text inside a quoted attribute no longer deletes the elements after it, and a javascript: value loses only its scheme instead of gaining quotes, and the scheme is also caught after leading spaces or with its colon written as an entity.