mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	added some extra allowed URI schemes, fixes #3692
This commit is contained in:
		
							parent
							
								
									6b4800d2d6
								
							
						
					
					
						commit
						0c806024fb
					
				@ -45,7 +45,12 @@ function sanitize(dirtyHtml) {
 | 
				
			|||||||
            'table': [ 'class' ],
 | 
					            'table': [ 'class' ],
 | 
				
			||||||
            'en-media': [ 'hash' ]
 | 
					            '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,
 | 
					        transformTags,
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user