From 9ff6bcb3e267ed136a2dcfac6279342a83431429 Mon Sep 17 00:00:00 2001 From: Roger Rehnelt Date: Mon, 5 Oct 2026 21:19:34 +0200 Subject: Statistik: Käuferliste nur mit Berechtigung MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Anzeige und Export der Produktstatistik liefen über eine Frontend-Adresse ohne Prüfung; sie verlangen jetzt die Berechtigung der Produktverwaltung und eine Nonce. Co-Authored-By: Claude Opus 5.5 --- views/mods/mod_statistics/produkt_edit_sidebar.phtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/views/mods/mod_statistics/produkt_edit_sidebar.phtml b/views/mods/mod_statistics/produkt_edit_sidebar.phtml index b41d240..e7c7d7c 100644 --- a/views/mods/mod_statistics/produkt_edit_sidebar.phtml +++ b/views/mods/mod_statistics/produkt_edit_sidebar.phtml @@ -99,7 +99,8 @@ jQuery.ajax( { url: 'getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_statistics', 'aktualisieren'); ?>', data: { - 'edit_id': , + 'edit_id': , + 'wpsg_nonce': '', 'von': jQuery('#st_von').val(), 'bis': jQuery('#st_bis').val(), }, @@ -114,7 +115,8 @@ jQuery('#st_export').bind('click', function(){ location.href = 'getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_statistics', 'export', array( - 'edit_id' => $_REQUEST['edit_id'] + 'edit_id' => intval($_REQUEST['edit_id']), + 'wpsg_nonce' => wp_create_nonce('wpsg-mod-statistics') )); ?>&von=' + jQuery('#st_von').val() + '&bis=' + jQuery('#st_bis').val(); }); -- cgit v1.2.3