mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	better checking for passed parameters
This commit is contained in:
		
							parent
							
								
									782107af8e
								
							
						
					
					
						commit
						d3a8ab69fd
					
				|  | @ -60,8 +60,9 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) { | |||
| 		$userfiletype = $_FILES[ $file_param_name ]["type"]; | ||||
| 		$userfilename = $_FILES[ $file_param_name ]["name"]; | ||||
| 
 | ||||
| 		$name     = $_POST["name"]; | ||||
| 		if(!$name) | ||||
| 		if(isset($_POST["name"]) && $_POST["name"]) | ||||
| 			$name = $_POST["name"]; | ||||
| 		else | ||||
| 			$name = $userfilename; | ||||
| 		$comment  = $_POST["comment"]; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann