mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	normalize strings before calculation hashes, #4435
This commit is contained in:
		
							parent
							
								
									93dcce2217
								
							
						
					
					
						commit
						a6036859b8
					
				@ -63,6 +63,8 @@ function isElectron() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function hash(text) {
 | 
					function hash(text) {
 | 
				
			||||||
 | 
					    text = text.normalize();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return crypto.createHash('sha1').update(text).digest('base64');
 | 
					    return crypto.createHash('sha1').update(text).digest('base64');
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user