mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	fixed disabled prefix in case of unsafe import to conform to new attribute name pattern constraints
This commit is contained in:
		
							parent
							
								
									e318acc977
								
							
						
					
					
						commit
						b7b1324dd0
					
				| @ -158,7 +158,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) { | |||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             if (taskContext.data.safeImport && attributeService.isAttributeDangerous(attr.type, attr.name)) { |             if (taskContext.data.safeImport && attributeService.isAttributeDangerous(attr.type, attr.name)) { | ||||||
|                 attr.name = 'disabled-' + attr.name; |                 attr.name = 'disabled:' + attr.name; | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             attributes.push(attr); |             attributes.push(attr); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam