summaryrefslogtreecommitdiffstats
path: root/application/controllers/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r--application/controllers/file.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index fcb8717c5..d0884e3f7 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -521,6 +521,11 @@ class File extends CI_Controller {
// Handle pastes
function do_paste()
{
+ // desktop clients get a cookie to claim the ID later
+ if (is_cli_client()) {
+ $this->muser->require_access();
+ }
+
$content = $this->input->post("content");
$filesize = strlen($content);
$filename = "stdin";
@@ -559,6 +564,11 @@ class File extends CI_Controller {
// Handles uploaded files
function do_upload()
{
+ // desktop clients get a cookie to claim the ID later
+ if (is_cli_client()) {
+ $this->muser->require_access();
+ }
+
$ids = array();
$extension = $this->input->post('extension');