From 285262b6c668b4f367f8222880ceb01be39fd3ac Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 29 Aug 2013 17:55:52 +0200 Subject: Add CSRF protection Signed-off-by: Florian Pritz --- application/views/file/client.php | 4 ++-- application/views/file_plaintext/client.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'application/views') diff --git a/application/views/file/client.php b/application/views/file/client.php index 5e141f141..29e254a80 100644 --- a/application/views/file/client.php +++ b/application/views/file/client.php @@ -42,7 +42,7 @@ machine login my_username password my_secret_password

Shell

-curl -n -F "file=@/home/user/foo"    (binary safe)
-cat file | curl -n -F "file=@-;filename=stdin"    (binary safe)
+curl -n -F "file=@/home/user/foo"    (binary safe)
+cat file | curl -n -F "file=@-;filename=stdin"    (binary safe)
 
diff --git a/application/views/file_plaintext/client.php b/application/views/file_plaintext/client.php index b37fd81bd..0ab556df2 100644 --- a/application/views/file_plaintext/client.php +++ b/application/views/file_plaintext/client.php @@ -1,6 +1,6 @@ Shell (binary safe): - curl -n -F "file=@/home/user/foo" - cat file | curl -n -F "file=@-;filename=stdin" + curl -n -F "file=@/home/user/foo" + cat file | curl -n -F "file=@-;filename=stdin" Client: Development (git): http://git.server-speed.net/users/flo/fb -- cgit v1.2.3-24-g4f1b