selma 0.5.2-x86_64-linux → 0.5.4-x86_64-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/selma/3.2/selma.so +0 -0
- data/lib/selma/3.3/selma.so +0 -0
- data/lib/selma/3.4/selma.so +0 -0
- data/lib/selma/4.0/selma.so +0 -0
- data/lib/selma/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e72e293d3f0d36881a67732dda3fe9f9ba08463194d876f674bb6aa0656dc1ea
|
|
4
|
+
data.tar.gz: 3ecdad4331907ffcf9fcede6f9090a4ac7ec03baaa9c27f51938f78b33082312
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa0ae3a6a77ae0605174a3fe183c88b443f6bf7e5341bfb7622618f33d11f729275aad24b339b070ff3b067115a82df61f6610804419aba1dadda609095ae5e1
|
|
7
|
+
data.tar.gz: a7cfe89c9f62f8d35cca7071de099f73553a53aa6ca303f35828e82ec84d5bf0c07820b56b23caf144bfc03bf89bdd1c15d1133af743ca03c5633469847d205d
|
data/README.md
CHANGED
|
@@ -201,9 +201,13 @@ The structure of the `memory` options looks like this:
|
|
|
201
201
|
|
|
202
202
|
Note that `preallocated_parsing_buffer_size` must always be less than `max_allowed_memory_usage`. See [the`lol_html` project documentation](https://docs.rs/lol_html/1.2.1/lol_html/struct.MemorySettings.html) to learn more about the default values.
|
|
203
203
|
|
|
204
|
+
### Literal `<` in text is always escaped
|
|
205
|
+
|
|
206
|
+
Whenever a sanitizer is in use, a literal `<` in text is emitted as `<`. That includes `<textarea>` and `<title>`, where entities are still decoded, but not raw-text elements such as `<style>`, where they are not. This is what stops a stray `<` from fusing with the text after it into a brand new tag once the sanitizer removes whatever sat in between, e.g. `<<script></script>img src=x onerror=alert(1)>`. Your own `handle_text_chunk` handlers still receive the original text, and anything they `replace` takes precedence. An unterminated trailing token (`foo <!-- `, `foo <img src=x`) is dropped rather than passed through, since emitted verbatim it would keep parsing into whatever page the fragment is embedded in.
|
|
207
|
+
|
|
204
208
|
## Benchmarks
|
|
205
209
|
|
|
206
|
-
When `bundle exec rake benchmark`, two different benchmarks are calculated. Here are those results on my machine.
|
|
210
|
+
The benchmark gems live in an optional Bundler group, so install them first with `bundle config set --local with benchmark && bundle install`. When `bundle exec rake benchmark`, two different benchmarks are calculated. Here are those results on my machine.
|
|
207
211
|
|
|
208
212
|
### Benchmarks for just the sanitization process
|
|
209
213
|
|
data/lib/selma/3.2/selma.so
CHANGED
|
Binary file
|
data/lib/selma/3.3/selma.so
CHANGED
|
Binary file
|
data/lib/selma/3.4/selma.so
CHANGED
|
Binary file
|
data/lib/selma/4.0/selma.so
CHANGED
|
Binary file
|
data/lib/selma/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: selma
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: x86_64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Garen J. Torikian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|