From 6ccf8eff4c6fdb978c3e6243b304afffaef2925f Mon Sep 17 00:00:00 2001 From: Qqwy Date: Thu, 18 Feb 2016 23:49:48 +0100 Subject: [PATCH] Added `data` to ACCEPTABLE_PROTOCOLS --- lib/loofah/html5/whitelist.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loofah/html5/whitelist.rb b/lib/loofah/html5/whitelist.rb index 85ffe6a7..1fc478cf 100644 --- a/lib/loofah/html5/whitelist.rb +++ b/lib/loofah/html5/whitelist.rb @@ -145,7 +145,7 @@ module WhiteList PROTOCOL_SEPARATOR = /:|(�*58)|(p)|(�*3a)|(%|%)3A/i ACCEPTABLE_PROTOCOLS = Set.new %w[ed2k ftp http https irc mailto news gopher nntp - telnet webcal xmpp callto feed urn aim rsync tag ssh sftp rtsp afs] + telnet webcal xmpp callto feed urn aim rsync tag ssh sftp rtsp afs data] # subclasses may define their own versions of these constants ALLOWED_ELEMENTS = ACCEPTABLE_ELEMENTS + MATHML_ELEMENTS + SVG_ELEMENTS