~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH core.sr.ht v2] Add anchor tag to bleach sanitizer whitelist

Details
Message ID
<20201205050617.37359-1-sourcehut.trs-80@isnotmyreal.name>
DKIM signature
pass
Download raw message
Patch: +1 -0
---
Sorry, I forgot that "a" is already included in the default list of
bleach.sanitizer.ALLOWED_TAGS.[0]

Cheers,
TRS-80

[0] https://pythonhosted.org/bleach/clean.html#allowed-tags-tags

 srht/markdown.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/srht/markdown.py b/srht/markdown.py
index 8929803..a724e4f 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -139,6 +139,7 @@ def _wildcard_filter(tag, name, value):
    return name in ["style", "class", "colspan", "rowspan"]

_sanitizer_attrs = {
    "a": ["id"],
    "h1": ["id"],
    "h2": ["id"],
    "h3": ["id"],
-- 
2.29.2

[core.sr.ht/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<C7KLCUN2JLEV.11ENFOHKOO9JU@cirno>
In-Reply-To
<20201205050617.37359-1-sourcehut.trs-80@isnotmyreal.name> (view parent)
DKIM signature
missing
Download raw message
core.sr.ht/patches: SUCCESS in 3m16s

[Add anchor tag to bleach sanitizer whitelist][0] v2 from [TRS-80][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/15489
[1]: sourcehut.trs-80@isnotmyreal.name

✓ #359333 SUCCESS core.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/359333
✓ #359332 SUCCESS core.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/359332
✓ #359334 SUCCESS core.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/359334
Details
Message ID
<C7KXH4WLSN79.3E77R77GUWOQW@taiga>
In-Reply-To
<20201205050617.37359-1-sourcehut.trs-80@isnotmyreal.name> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
This commit message isn't great. The actual change is adding the id
to the list of permitted anchor attributes.
Reply to thread Export thread (mbox)