mirror of https://github.com/MISP/misp-modules
				
				
				
			fix: skipping empty lines
							parent
							
								
									56cbd72b65
								
							
						
					
					
						commit
						529d22cca8
					
				| 
						 | 
				
			
			@ -59,7 +59,9 @@ def buildAttributes(header, dataValues, delimiter, length):
 | 
			
		|||
    if delimiter is None:
 | 
			
		||||
        mispType = header[0]
 | 
			
		||||
        for data in dataValues:
 | 
			
		||||
            attributes.append({'type': mispType, 'value': data.strip()})
 | 
			
		||||
            d = data.strip()
 | 
			
		||||
            if d:
 | 
			
		||||
                attributes.append({'type': mispType, 'value': d})
 | 
			
		||||
    else:
 | 
			
		||||
        # split fields that should be recognized as misp attribute types from the others
 | 
			
		||||
        list2pop, misp, head = findMispTypes(header)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue