This commit is contained in:
parent
41b064c1e3
commit
7d2e2b69d2
@ -90,11 +90,11 @@ function logToNginx($message): void
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$secret = $_POST['secret']; // The secret key
|
$secret = isset($_POST['secret']) ? $_POST['secret'] : null; // The secret key
|
||||||
$file = $_FILES['sharex']; // The uploaded file
|
$file = isset($_FILES['sharex']) ? $_FILES['sharex'] : null; // The uploaded file
|
||||||
|
|
||||||
// Page to show if someone visits the upload script
|
// Page to show if someone visits the upload script
|
||||||
if (!$secret && !$file) {
|
if ($secret == null && $file == null) {
|
||||||
returnJson(array(
|
returnJson(array(
|
||||||
'status' => 'OK',
|
'status' => 'OK',
|
||||||
'url' => 'Welcome to the ShareX PHP Uploader! v' . $SCRIPT_VERSION,
|
'url' => 'Welcome to the ShareX PHP Uploader! v' . $SCRIPT_VERSION,
|
||||||
|
Loading…
Reference in New Issue
Block a user