Loading secret-api.php +2 −2 Original line number Diff line number Diff line Loading @@ -30,8 +30,8 @@ $collection = $db->secrets; $method = $_SERVER['REQUEST_METHOD']; if ($method === 'POST' && isset($_POST['secret'])) { $data = json_decode(file_get_contents('php://input'), true); if ($method === 'POST' && isset($data['secret'])) { if ($data['secret']) { http_response_code(400); echo json_encode(['error' => '<p class="mb-0">Hmm... noslēpuma lauciņš ir tukšs. Bez tā šī ir tikai "Glabātuve", nevis "Noslēpumu glabātuve" 😅.</p>']); Loading Loading
secret-api.php +2 −2 Original line number Diff line number Diff line Loading @@ -30,8 +30,8 @@ $collection = $db->secrets; $method = $_SERVER['REQUEST_METHOD']; if ($method === 'POST' && isset($_POST['secret'])) { $data = json_decode(file_get_contents('php://input'), true); if ($method === 'POST' && isset($data['secret'])) { if ($data['secret']) { http_response_code(400); echo json_encode(['error' => '<p class="mb-0">Hmm... noslēpuma lauciņš ir tukšs. Bez tā šī ir tikai "Glabātuve", nevis "Noslēpumu glabātuve" 😅.</p>']); Loading