Skip to content

Commit aa4c3e2

Browse files
committed
Allow Data URI Schemes
From https://en.wikipedia.org/wiki/Data_URI_scheme, allow the psuedo-protocol 'data'.
1 parent 41c90ae commit aa4c3e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/sanitizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class HTMLSanitizerMixin(object):
138138
acceptable_protocols = ['ed2k', 'ftp', 'http', 'https', 'irc',
139139
'mailto', 'news', 'gopher', 'nntp', 'telnet', 'webcal',
140140
'xmpp', 'callto', 'feed', 'urn', 'aim', 'rsync', 'tag',
141-
'ssh', 'sftp', 'rtsp', 'afs']
141+
'ssh', 'sftp', 'rtsp', 'afs', 'data']
142142

143143
# subclasses may define their own versions of these constants
144144
allowed_elements = acceptable_elements + mathml_elements + svg_elements

0 commit comments

Comments
 (0)