Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb0c3975

Browse files
blagCaptainCodeman
authored andcommitted
Allow Data URI Schemes
Fromhttps://en.wikipedia.org/wiki/Data_URI_scheme, allow the psuedo-protocol 'data'.
1 parent7cce65b commitb0c3975

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)

[8]ページ先頭

©2009-2025 Movatter.jp