From 51244ce7d8d85d5c945022aac83120bc695a284c Mon Sep 17 00:00:00 2001 From: Vadim Eremeev Date: Mon, 26 Mar 2018 18:27:48 +0700 Subject: [PATCH] added tel and line into list of accessible 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 109356c1..52646ddf 100644 --- a/lib/loofah/html5/whitelist.rb +++ b/lib/loofah/html5/whitelist.rb @@ -146,7 +146,7 @@ module WhiteList PROTOCOL_SEPARATOR = /:|(�*58)|(p)|(�*3a)|(%|%)3A/i - ACCEPTABLE_PROTOCOLS = Set.new %w[ed2k ftp http https irc mailto news gopher nntp + ACCEPTABLE_PROTOCOLS = Set.new %w[ed2k ftp http https irc mailto tel line news gopher nntp telnet webcal xmpp callto feed urn aim rsync tag ssh sftp rtsp afs data] ACCEPTABLE_URI_DATA_MEDIATYPES = Set.new %w[text/plain text/css image/png image/gif