markup.c: markup_unquote(): Unquote things in the correct order
Because "&" is not the last character to be unescaped, it is possible that the lines for "<" and ">" expand some things they shouldn't. For example, "&lt;" should become "<", but instead it becomes ">". While this is unlikely to appear naturally in a notification, it is wrong.
This commit is contained in:
		
							parent
							
								
									18c4b4bf7a
								
							
						
					
					
						commit
						1f77b28691
					
				| @ -28,9 +28,9 @@ static char *markup_unquote(char *str) | ||||
| 
 | ||||
|         str = string_replace_all(""", "\"", str); | ||||
|         str = string_replace_all("'", "'", str); | ||||
|         str = string_replace_all("&", "&", str); | ||||
|         str = string_replace_all("<", "<", str); | ||||
|         str = string_replace_all(">", ">", str); | ||||
|         str = string_replace_all("&", "&", str); | ||||
| 
 | ||||
|         return str; | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Luke Shumaker
						Luke Shumaker