From bf1f98792788d0bb74dd966409cd78bca5058c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20B=C3=A4ckstr=C3=B6m?= Date: Sat, 7 Feb 2015 18:50:02 +0200 Subject: [PATCH] Update api.php remind me to never touch things when I'm not really concentrating on them, and especially when using a web editor. --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.php b/api.php index 41e4f8d..85c9c14 100644 --- a/api.php +++ b/api.php @@ -9,7 +9,7 @@ if(isset($_GET['d'])) { if(isset($_POST['autoext'])){ $oftheworld = explode(".", $_FILES["file"]["name"]); $ext = end($oftheworld); - save_file($_FILES["file"]["tmp_name"], "$_POST['name'].$ext"); + save_file($_FILES["file"]["tmp_name"], $_POST['name']. '.' .$ext); }else{ save_file($_FILES["file"]["tmp_name"], $_POST['name']); }