mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	fix "XSS" in the new empty tab, closes #2145
This commit is contained in:
		
							parent
							
								
									b0c0ed8512
								
							
						
					
					
						commit
						7e41226549
					
				| @ -43,7 +43,7 @@ async function autocompleteSource(term, cb, options = {}) { | |||||||
|                 action: 'create-note', |                 action: 'create-note', | ||||||
|                 noteTitle: term, |                 noteTitle: term, | ||||||
|                 parentNoteId: activeNoteId || 'root', |                 parentNoteId: activeNoteId || 'root', | ||||||
|                 highlightedNotePathTitle: `Create and link child note "${term}"` |                 highlightedNotePathTitle: `Create and link child note "${utils.escapeHtml(term)}"` | ||||||
|             } |             } | ||||||
|         ].concat(results); |         ].concat(results); | ||||||
|     } |     } | ||||||
| @ -53,7 +53,7 @@ async function autocompleteSource(term, cb, options = {}) { | |||||||
|             { |             { | ||||||
|                 action: 'external-link', |                 action: 'external-link', | ||||||
|                 externalLink: term, |                 externalLink: term, | ||||||
|                 highlightedNotePathTitle: `Insert external link to "${term}"` |                 highlightedNotePathTitle: `Insert external link to "${utils.escapeHtml(term)}"` | ||||||
|             } |             } | ||||||
|         ].concat(results); |         ].concat(results); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam