summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-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/";