mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #555 from return42/fix-autocomplete
[fix] route /autocompleter: escape '<' and '>' in the response
This commit is contained in:
		
						commit
						f0db33e14b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -916,6 +916,7 @@ def autocompleter():
 | 
			
		|||
        suggestions = json.dumps([sug_prefix, results])
 | 
			
		||||
        mimetype = 'application/x-suggestions+json'
 | 
			
		||||
 | 
			
		||||
    suggestions = escape(suggestions, False)
 | 
			
		||||
    return Response(suggestions, mimetype=mimetype)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue