summaryrefslogtreecommitdiff
path: root/www/functions
diff options
context:
space:
mode:
authorHorus32014-03-27 02:04:04 +0100
committerHorus32014-03-27 02:04:04 +0100
commita35197cefeb2dae3e3688eec5762824263d16f0c (patch)
tree1700a8cb5b9a514d39a6f9409cbc4165d51a2615 /www/functions
parent9469e30334580ada1a8c5761301fc2b1481e4355 (diff)
downloadfiles.iamfabulous.de-a35197cefeb2dae3e3688eec5762824263d16f0c.tar.gz
Fixed wrong input.
Diffstat (limited to 'www/functions')
-rwxr-xr-xwww/functions/func_upload.php7
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/";