Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); |