mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] yahoo engines: parse_url doesn't throw an exception with not tracking URL
This commit is contained in:
		
							parent
							
								
									a92e3ba446
								
							
						
					
					
						commit
						a4ffeddce1
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -40,8 +40,10 @@ def parse_url(url_string): | ||||||
|         if endpos > -1: |         if endpos > -1: | ||||||
|             endpositions.append(endpos) |             endpositions.append(endpos) | ||||||
| 
 | 
 | ||||||
|  |     if start==0 or len(endpositions) == 0: | ||||||
|  |         return url_string         | ||||||
|  |     else: | ||||||
|         end = min(endpositions) |         end = min(endpositions) | ||||||
| 
 |  | ||||||
|         return unquote(url_string[start:end]) |         return unquote(url_string[start:end]) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Dalf
						Dalf