diff options
| author | Horus3 | 2014-03-27 02:04:04 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-27 02:04:04 +0100 |
| commit | a35197cefeb2dae3e3688eec5762824263d16f0c (patch) | |
| tree | 1700a8cb5b9a514d39a6f9409cbc4165d51a2615 | |
| parent | 9469e30334580ada1a8c5761301fc2b1481e4355 (diff) | |
| download | files.iamfabulous.de-a35197cefeb2dae3e3688eec5762824263d16f0c.tar.gz | |
Fixed wrong input.
| -rwxr-xr-x | www/functions/func_upload.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/www/functions/func_upload.php b/www/functions/func_upload.php index 89bfbc0..850c501 100755 --- a/www/functions/func_upload.php +++ b/www/functions/func_upload.php @@ -51,7 +51,12 @@ function upload($path){ $folder = "FILE"; $mime = $_FILES['userfile']['type']; $size = $_FILES['userfile']['size']; - $share = SQLite3::escapeString($_POST['share']); + + if(isset($_POST["share"])){ + $share = "PUBLIC"; + } else { + $share = "PRIVATE"; + } $uploaddir = "../files/"; |
