summaryrefslogtreecommitdiff
path: root/web/uploader.php.cpp
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-06-26 16:28:08 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-06-26 16:28:08 +0930
commita3158e7994c9e05b3ef6683dea84ce0a6ae4609c (patch)
tree45678b36986237e6d03969af660811f2d3d94c76 /web/uploader.php.cpp
parent8253b9dd5d279793e267ed5dfcc4c0f2cfbaeb83 (diff)
web: fix umask on uploader so it's group readable.
Diffstat (limited to 'web/uploader.php.cpp')
-rw-r--r--web/uploader.php.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/uploader.php.cpp b/web/uploader.php.cpp
index ed7f76a6..3b494df1 100644
--- a/web/uploader.php.cpp
+++ b/web/uploader.php.cpp
@@ -14,6 +14,7 @@ if ($_FILES["uploadedfile"]["error"] > 0) {
$dest = tempnam($tempfolder, "upload-");
move_uploaded_file($_FILES["uploadedfile"]["tmp_name"], $dest);
+umask 0740
$subject = "CCAN: code upload by '" . $_POST['email'] . "' with name " . $_FILES["uploadedfile"]["name"];
$message = "File type: ".$_FILES["uploadedfile"]["type"]."\n".