]> jfr.im git - uguu.git/commitdiff
Update api.php
authorEric Johansson (neku) <redacted>
Wed, 11 Feb 2015 02:30:15 +0000 (03:30 +0100)
committerEric Johansson (neku) <redacted>
Wed, 11 Feb 2015 02:30:15 +0000 (03:30 +0100)
api.php

diff --git a/api.php b/api.php
index 2f59766865f42711f545313548386fc30f4e4f1a..f83c61ac73852e22d4d9bd4d7aa5bbfcfafac2f4 100644 (file)
--- a/api.php
+++ b/api.php
@@ -13,8 +13,6 @@ if(isset($_GET['d'])) {
        //If value contains anything, keep original filename
        if(!empty($_POST['originalname'])){
         $name = $_FILES['file']['name'];}
-       //Remove any whitespace from name
-       $name = preg_replace('/\s+/', '', $name);
        //Call the save function which sends the file+name
        save_file($_FILES['file']['tmp_name'], $name);
        break;