jvoisin
|
21703c81f4
perf(sanitizer): Use an io.MultiReader
|
2 сар өмнө |
jvoisin
|
b79f22a63c
perf(sanitizer): html.Parse already lowercases tag names
|
2 сар өмнө |
Frédéric Guillot
|
16ff071365
feat(sanitizer): allow iframes from framatube.org
|
2 сар өмнө |
Frédéric Guillot
|
293209098a
fix(sanitizer): strip inner elements of blocked iframes
|
2 сар өмнө |
jvoisin
|
6838f3a6e9
perf(sanitizer): use WriteByte for single characters instead of WriteString
|
3 сар өмнө |
jvoisin
|
8483f06595
perf(sanitizer): refactor hasRequiredAttributes
|
3 сар өмнө |
jvoisin
|
da15700205
perf(sanitizer): inline getExtraAttributes
|
3 сар өмнө |
jvoisin
|
cd6236b1cd
perf(sanitize): Use strings.Builder instead of manually concatenating
|
3 сар өмнө |
jvoisin
|
0dcc0a852b
refactor(sanitizer): improve a bit sanitizeAttributes
|
3 сар өмнө |
jvoisin
|
7b65255757
refactor(sanitizer): handle deeply nested recursion
|
3 сар өмнө |
jvoisin
|
6a9d7894d1
refactor(sanitizer): improve how attributes are sanitized
|
3 сар өмнө |
Frédéric Guillot
|
4d27f66ff9
refactor(sanitizer): reorder non-public functions alphabetically
|
3 сар өмнө |
Frédéric Guillot
|
5a8431b144
refactor(sanitizer): enforce isBlockedResource() on srcset URLs
|
3 сар өмнө |
jvoisin
|
bf24fd1ec9
perf(sanitizer): don't do a map lookup for every attribute of a tag
|
4 сар өмнө |
jvoisin
|
b57ebac757
refactor(sanitizer): remove a useless case
|
4 сар өмнө |
jvoisin
|
62f316c7cf
refactor(sanitizer): html attributes keys are always lowercase
|
4 сар өмнө |
Frédéric Guillot
|
89638b448a
refactor(sanitizer): remove workaround that strip large img width attribute
|
4 сар өмнө |
jvoisin
|
d8181b1f65
refactor(sanitizer): use a parser instead of a tokenizer
|
4 сар өмнө |
jvoisin
|
a5fb91e3e8
refactor(sanitizer): rename isValidTag to isAllowedTag
|
4 сар өмнө |
jvoisin
|
8357e6decf
refactor(sanitizer): don't process tags when len(blockedStack) != 0
|
4 сар өмнө |
Frédéric Guillot
|
bb05b25530
refactor(urllib): replace AbsoluteURL and GetAbsoluteURL
|
4 сар өмнө |
jvoisin
|
f447307359
feat: add the `i` and `small` tags to the sanitizer's allowlist
|
6 сар өмнө |
Frédéric Guillot
|
4892e04e9b
fix: avoid YouTube error 153 for embed iframes
|
6 сар өмнө |
Frédéric Guillot
|
7e2dd3afe6
fix: avoid YouTube error 153 video player configuration error
|
7 сар өмнө |
jvoisin
|
0a15075c00
refactor(sanitizer): save some cycles in hasRequiredAttributes
|
7 сар өмнө |
Frédéric Guillot
|
ec93656ef5
perf: preallocate slices
|
7 сар өмнө |
Julien Voisin
|
5a97bf8b5e
refactor(sanitizer): simplify `hasValidURIScheme` and `isBlockedResource` functions
|
8 сар өмнө |
Julien Voisin
|
9d32b23ab0
perf(sanitizer): make sanitizer ~10% faster by using `slices.Contains` instead of nested maps
|
9 сар өмнө |
jvoisin
|
485baf9654
refactor(misc): fix a handful of TODO
|
9 сар өмнө |
Julien Voisin
|
566670cc06
refactor: unexport symbols
|
9 сар өмнө |