mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] route /autocompleter: escape < and > in the simple theme
				
					
				
			This is a follow up of 9a3253fc escaping `<` and `>` in all themes.  This patch
fix issue in oscar theme
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
			
			
This commit is contained in:
		
							parent
							
								
									11ba7f294f
								
							
						
					
					
						commit
						0c8ff97d9e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -916,7 +916,8 @@ def autocompleter():
 | 
				
			||||||
        suggestions = json.dumps([sug_prefix, results])
 | 
					        suggestions = json.dumps([sug_prefix, results])
 | 
				
			||||||
        mimetype = 'application/x-suggestions+json'
 | 
					        mimetype = 'application/x-suggestions+json'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    suggestions = escape(suggestions, False)
 | 
					    if get_current_theme_name() == 'simple':
 | 
				
			||||||
 | 
					        suggestions = escape(suggestions, False)
 | 
				
			||||||
    return Response(suggestions, mimetype=mimetype)
 | 
					    return Response(suggestions, mimetype=mimetype)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue