filter input
This commit is contained in:
		
							
								
								
									
										10
									
								
								rdp.php
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								rdp.php
									
									
									
									
									
								
							| @ -1,6 +1,10 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
| header('Content-Disposition: attachment; filename='.str_replace(':', '_', $_GET['v']).'.rdp'); | $host = filter_input(INPUT_GET, 'v', FILTER_VALIDATE_DOMAIN) ?: filter_input(INPUT_GET, 'v', FILTER_VALIDATE_IP); | ||||||
|  | if (!$host) { | ||||||
|  |     exit(); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | header('Content-Disposition: attachment; filename='.str_replace(':', '_', $host).'.rdp'); | ||||||
| header('Content-Type: application/rdp'); | header('Content-Type: application/rdp'); | ||||||
| echo "full address:s:${_GET['v']}\n"; | echo "full address:s:$host\n"; | ||||||
| exit(); |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user