matrix-org/synapse

Upgrade to Bleach 1.5, to limit link schemes to an allowlist

Offen

#2.860 geöffnet am 09.02.2018

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (2.196 Forks)batch import
A-Email-PushP4T-EnhancementZ-Help-Wantedgood first issue

Repository-Metriken

Stars
 (11.713 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

The 1.5 version of Bleach made the allowed protocols configurable: http://bleach.readthedocs.io/en/latest/clean.html#allowed-protocols-protocols

Once the dependency is updated, the safe_markup function in the mailer can be updated and these lines can be uncommented: https://github.com/matrix-org/synapse/blob/42b50483be2b022735f8ae2107314d51e92e8471/synapse/push/mailer.py#L76-L77

Contributor Guide