From 245d09e62ccd2f123b5a871ac0559114f11d60c0 Mon Sep 17 00:00:00 2001 From: Niek Rabelink Date: Sat, 12 Sep 2026 10:25:49 +0200 Subject: [PATCH] Last security check --- admin.php | 2 +- brainstorm_canvas.php | 8 ++++---- includes/ai.php | 5 +++-- includes/env_badge.php | 2 +- jira.php | 2 +- mail.php | 4 ++-- planner.php | 8 ++++---- 7 files changed, 16 insertions(+), 15 deletions(-) diff --git a/admin.php b/admin.php index 0af8c3b..c5bf984 100644 --- a/admin.php +++ b/admin.php @@ -1232,7 +1232,7 @@ require_once __DIR__ . '/includes/header.php';
30 minuten - Aanbevolen + Aanbevolen
NIST SP 800-63B & OWASP ASVS v4.0 standaard
diff --git a/brainstorm_canvas.php b/brainstorm_canvas.php index 64ebaaf..a174ae3 100644 --- a/brainstorm_canvas.php +++ b/brainstorm_canvas.php @@ -693,7 +693,7 @@ async function aiSuggestRoadmapMeta(btn) { headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ content: firstContent, - session_title: '' + session_title: }) }); const data = await res.json(); @@ -741,7 +741,7 @@ async function openAiBreakdownModal(cardId, content) { currentBreakdownItems = []; document.getElementById('breakdownIdeaText').innerText = `"${content}"`; - document.getElementById('breakdownSessionLabel').innerText = `Sessie: ()`; + document.getElementById('breakdownSessionLabel').innerText = "Sessie: " + + " (" + + ")"; const modal = document.getElementById('aiBreakdownModal'); modal.classList.remove('hidden'); @@ -795,8 +795,8 @@ async function fetchAiBreakdown(content) { body: JSON.stringify({ session_id: sessionId, content: content, - session_title: '', - theme: '', + session_title: , + theme: , }) }); diff --git a/includes/ai.php b/includes/ai.php index 0c2a0f5..dd6ab1b 100644 --- a/includes/ai.php +++ b/includes/ai.php @@ -131,12 +131,13 @@ function fociz_ai_chat_gemini(array $messages, array $options, array $aiSettings $payload['generationConfig']['responseMimeType'] = 'application/json'; } - $endpoint = "https://generativelanguage.googleapis.com/v1beta/models/{$model}:generateContent?key=" . urlencode($apiKey); + $endpoint = "https://generativelanguage.googleapis.com/v1beta/models/{$model}:generateContent"; $response = fociz_http_request($endpoint, [ 'method' => 'POST', 'headers' => [ - 'Content-Type' => 'application/json', + 'Content-Type' => 'application/json', + 'x-goog-api-key' => $apiKey, ], 'body' => $payload, 'timeout' => 45, diff --git a/includes/env_badge.php b/includes/env_badge.php index 522a096..f34e2ed 100644 --- a/includes/env_badge.php +++ b/includes/env_badge.php @@ -56,7 +56,7 @@ $isLive = in_array(strtolower(trim($environment)), ['live', 'production', 'prod' Development -