Refactor: blacklist variable in processTablesParameter
This commit is contained in:
		
					parent
					
						
							
								a0fdf6b983
							
						
					
				
			
			
				commit
				
					
						ea00a3c1e5
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								api.php
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								api.php
									
										
									
									
									
								
							|  | @ -553,7 +553,8 @@ class REST_CRUD_API { | |||
| 	} | ||||
| 
 | ||||
| 	protected function processTablesParameter($database,$tables,$action,$db) { | ||||
| 		if (in_array(strtolower($database), array('information_schema','mysql','sys','pg_catalog'))) return array(); | ||||
| 		$blacklist = array('information_schema','mysql','sys','pg_catalog'); | ||||
| 		if (in_array(strtolower($database), $blacklist)) return array(); | ||||
| 		$tablelist = explode(',',$tables); | ||||
| 		$tables = array(); | ||||
| 		foreach ($tablelist as $table) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Maurits van der Schee
				Maurits van der Schee