From aa4c3e250596692c99bf6e14a712f66ed7ee4ca6 Mon Sep 17 00:00:00 2001 From: blag Date: Mon, 28 Apr 2014 10:23:11 -0600 Subject: [PATCH] Allow Data URI Schemes From https://en.wikipedia.org/wiki/Data_URI_scheme, allow the psuedo-protocol 'data'. --- html5lib/sanitizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html5lib/sanitizer.py b/html5lib/sanitizer.py index 469d9b40..9f1b2261 100644 --- a/html5lib/sanitizer.py +++ b/html5lib/sanitizer.py @@ -138,7 +138,7 @@ class HTMLSanitizerMixin(object): acceptable_protocols = ['ed2k', 'ftp', 'http', 'https', 'irc', 'mailto', 'news', 'gopher', 'nntp', 'telnet', 'webcal', 'xmpp', 'callto', 'feed', 'urn', 'aim', 'rsync', 'tag', - 'ssh', 'sftp', 'rtsp', 'afs'] + 'ssh', 'sftp', 'rtsp', 'afs', 'data'] # subclasses may define their own versions of these constants allowed_elements = acceptable_elements + mathml_elements + svg_elements