mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	Merge pull request #3480 from contributor/feature/pageUrlSanitizeUrl
Fix pageUrl and clipping selection can create multiple notes for the same Url
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
			
		||||
const sanitizeHtml = require('sanitize-html');
 | 
			
		||||
const sanitizeUrl = require('@braintree/sanitize-url').sanitizeUrl;
 | 
			
		||||
 | 
			
		||||
// intended mainly as protection against XSS via import
 | 
			
		||||
// secondarily it (partly) protects against "CSS takeover"
 | 
			
		||||
@@ -50,5 +51,6 @@ function sanitize(dirtyHtml) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module.exports = {
 | 
			
		||||
    sanitize
 | 
			
		||||
    sanitize,
 | 
			
		||||
    sanitizeUrl
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user