mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-31 10:37:06 -04:00 
			
		
		
		
	Don't throw away the request if pageno is wrong
Fix #424 but maybe only partially
This commit is contained in:
		
							parent
							
								
									8adc80123a
								
							
						
					
					
						commit
						ed1daa32ea
					
				| @ -358,7 +358,7 @@ class Search(object): | |||||||
|         # set pagenumber |         # set pagenumber | ||||||
|         pageno_param = self.request_data.get('pageno', '1') |         pageno_param = self.request_data.get('pageno', '1') | ||||||
|         if not pageno_param.isdigit() or int(pageno_param) < 1: |         if not pageno_param.isdigit() or int(pageno_param) < 1: | ||||||
|             raise Exception('wrong pagenumber') |             pageno_param = 1 | ||||||
| 
 | 
 | ||||||
|         self.pageno = int(pageno_param) |         self.pageno = int(pageno_param) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user