Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Oct 25, 2024
1 parent d7a8227 commit 59310bf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugin/Live/authorizeKeyAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,9 @@ function getTmpFilePath($key)
$isCached = false;
if (!empty($key)) {
$tmpFilePath = getTmpFilePath($key);
}else{
http_response_code(403);
$msg = 'authorizeKeyAccess: Access denied invalid key ';
error_log($msg . json_encode(array($_SERVER, $uri)));
echo $msg;
}

if (file_exists($tmpFilePath)) {
if (!empty($tmpFilePath) && file_exists($tmpFilePath)) {
$tolerance = 300; // 5 min
$content = (file_get_contents($tmpFilePath));
$time = intval($content);
Expand Down

0 comments on commit 59310bf

Please sign in to comment.