| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -90,7 +90,7 @@ if (isset($_POST['submitWork'])) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // Try to add an extension to the file if it hasn't got one | 
					 | 
					 | 
					 | 
					            // Try to add an extension to the file if it hasn't got one | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $dropbox_filename = add_ext_on_mime($dropbox_filename, $dropbox_filetype); | 
					 | 
					 | 
					 | 
					            $dropbox_filename = add_ext_on_mime($dropbox_filename, $dropbox_filetype); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // Replace dangerous characters | 
					 | 
					 | 
					 | 
					            // Replace dangerous characters | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $dropbox_filename = replace_dangerous_char($dropbox_filename); | 
					 | 
					 | 
					 | 
					            $dropbox_filename = api_replace_dangerous_char($dropbox_filename); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // Transform any .php file in .phps fo security | 
					 | 
					 | 
					 | 
					            // Transform any .php file in .phps fo security | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            $dropbox_filename = php2phps($dropbox_filename); | 
					 | 
					 | 
					 | 
					            $dropbox_filename = php2phps($dropbox_filename); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            if (!filter_extension($dropbox_filename)) { | 
					 | 
					 | 
					 | 
					            if (!filter_extension($dropbox_filename)) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |