added some extra allowed URI schemes, fixes #3692

This commit is contained in:
zadam 2023-03-12 21:20:34 +01:00
parent 6b4800d2d6
commit 0c806024fb

View File

@ -45,7 +45,12 @@ function sanitize(dirtyHtml) {
'table': [ 'class' ],
'en-media': [ 'hash' ]
},
allowedSchemes: ['http', 'https', 'ftp', 'mailto', 'data', 'evernote'],
allowedSchemes: [
'http', 'https', 'ftp', 'ftps', 'mailto', 'data', 'evernote', 'file', 'facetime', 'irc', 'gemini', 'git',
'gopher', 'imap', 'irc', 'irc6', 'jabber', 'jar', 'lastfm', 'ldap', 'ldaps', 'magnet', 'message',
'mumble', 'nfs', 'pop', 'rmi', 's3', 'sftp', 'skype', 'sms', 'spotify', 'steam', 'svn', 'udp', 'view-source',
'vnc', 'ws', 'wss', 'xmpp', 'jdbc', 'slack'
],
transformTags,
});
}