fixed unescaping of & < >
This commit is contained in:
		
							parent
							
								
									ba6c00bad1
								
							
						
					
					
						commit
						f84ace2b05
					
				
							
								
								
									
										6
									
								
								dunst.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								dunst.c
									
									
									
									
									
								
							| @ -332,17 +332,17 @@ char | |||||||
|         else if(!strncmp(strpos, "&", strlen("amp;"))) { |         else if(!strncmp(strpos, "&", strlen("amp;"))) { | ||||||
|             *tmppos = '&'; |             *tmppos = '&'; | ||||||
|             tmppos++; |             tmppos++; | ||||||
|             strpos += strlen("&") - 1; |             strpos += strlen("&"); | ||||||
|         } |         } | ||||||
|         else if(!strncmp(strpos, "<", strlen("lt;"))) { |         else if(!strncmp(strpos, "<", strlen("lt;"))) { | ||||||
|             *tmppos = '<'; |             *tmppos = '<'; | ||||||
|             tmppos++; |             tmppos++; | ||||||
|             strpos += strlen("<") - 1; |             strpos += strlen("<"); | ||||||
|         } |         } | ||||||
|         else if(!strncmp(strpos, ">", strlen("gt;"))) { |         else if(!strncmp(strpos, ">", strlen("gt;"))) { | ||||||
|             *tmppos = '>'; |             *tmppos = '>'; | ||||||
|             tmppos++; |             tmppos++; | ||||||
|             strpos += strlen(">") - 1; |             strpos += strlen(">"); | ||||||
|         } |         } | ||||||
|         else { |         else { | ||||||
|             *tmppos = *strpos; |             *tmppos = *strpos; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sascha Kruse
						Sascha Kruse