Browse Source

web: fix umask on uploader so it's group readable.

Rusty Russell 13 years ago
parent
commit
a3158e7994
1 changed files with 1 additions and 0 deletions
  1. 1 0
      web/uploader.php.cpp

+ 1 - 0
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".