mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 02:29:03 +00:00 
			
		
		
		
	Potential fix for code scanning alert no. 1692: Incomplete string escaping or encoding (#23895)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									3c527ca83b
								
							
						
					
					
						commit
						e5f8ea2925
					
				| @ -314,7 +314,7 @@ export const jsonToCSV = <T extends JSONRecord>( | ||||
|         } | ||||
|         const escaped = | ||||
|           typeof value === 'string' | ||||
|             ? value.replace(/"/g, '\\"') | ||||
|             ? value.replace(/\\/g, '\\\\').replace(/"/g, '\\"') | ||||
|             : value.toString(); // handle quotes in content
 | ||||
| 
 | ||||
|         return `"${escaped}"`; // wrap each field in quotes
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ushran Gouhar
						Ushran Gouhar