X-Git-Url: https://jfr.im/git/uguu.git/blobdiff_plain/4112f8f60692196e45fb5b47d4f633d2b2c8f992..87451310bb6862b0c141d8cbdd1f85cb935ee447:/api.php diff --git a/api.php b/api.php index 8b2a78d..ad5fc5d 100644 --- a/api.php +++ b/api.php @@ -5,6 +5,9 @@ if(isset($_GET['d'])) { include_once('includes/core.php'); switch ($_GET['d']) { case 'upload': + //If no file is being posted, exit + if(empty($_FILES['file']['name'])){ + exit('You fucked up, nothing to do.');} //Set the name value to the original filename $name = $_FILES['file']['name']; $arg = 'custom_original';