Skip to content

Commit

Permalink
#6888 Patch plupload on install
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Mar 26, 2021
1 parent 7c9b1c7 commit 0fc2f22
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions composer.json
Expand Up @@ -44,6 +44,9 @@
"illuminate/database": {
"Patch Laravel binding array issue": "lib/laravel-binding-6632.diff",
"Patch Laravel binding array issue v2": "lib/laravel-binding-6718.diff"
},
"moxiecode/plupload": {
"Make plupload example safe": "lib/safen-plupload-example-6888.diff"
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions lib/safen-plupload-example-6888.diff
@@ -0,0 +1,12 @@
--- examples/upload.php 2021-03-26 13:50:38.346011053 -0700
+++ examples/upload.php 2021-03-26 13:51:20.236255082 -0700
@@ -13,7 +13,8 @@
#!! this file is just an example, it doesn't incorporate any security checks and
#!! is not recommended to be used in production environment as it is. Be sure to
#!! revise it and customize to your needs.
-
+#!! The exit() statement below makes sure this script is not exposed accidentally.
+exit();

// Make sure file is not cached (as it happens for example on iOS devices)
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

0 comments on commit 0fc2f22

Please sign in to comment.