diff options
| author | Simon Rettberg | 2025-05-08 18:19:28 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-05-08 18:19:28 +0200 |
| commit | bcd2fd613ec7a29b05ab90dc4739e974c2060811 (patch) | |
| tree | 73ca733cf13e61c993ed7c639b008f418106e5a6 /modules-available/statistics | |
| parent | index.php: Add comment to hostname redirect check stuff (diff) | |
| download | slx-admin-bcd2fd613ec7a29b05ab90dc4739e974c2060811.tar.gz slx-admin-bcd2fd613ec7a29b05ab90dc4739e974c2060811.tar.xz slx-admin-bcd2fd613ec7a29b05ab90dc4739e974c2060811.zip | |
Change non-modifying AJAX requests from POST to GET
Diffstat (limited to 'modules-available/statistics')
| -rw-r--r-- | modules-available/statistics/page.inc.php | 2 | ||||
| -rw-r--r-- | modules-available/statistics/templates/js-pciquery.html | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php index f07dca56..3a938ff9 100644 --- a/modules-available/statistics/page.inc.php +++ b/modules-available/statistics/page.inc.php @@ -286,7 +286,7 @@ class Page_Statistics extends Page } if ($action === 'json-lookup') { $reply = []; - foreach (Request::post('list', [], 'array') as $item) { + foreach (Request::any('list', [], 'array') as $item) { $name = PciId::getPciId(PciId::AUTO, $item, true); if ($name === false) { $name = '?????'; diff --git a/modules-available/statistics/templates/js-pciquery.html b/modules-available/statistics/templates/js-pciquery.html index 5d4df867..55683161 100644 --- a/modules-available/statistics/templates/js-pciquery.html +++ b/modules-available/statistics/templates/js-pciquery.html @@ -4,8 +4,7 @@ var doQuery = function() { if (missing && missing.length > 0) { $.ajax({ - url: '?do=statistics', dataType: "json", method: "POST", data: { - token: TOKEN, + url: '?do=statistics', dataType: "json", method: "GET", data: { action: 'json-lookup', list: missing.splice(0, 10) // Query 10 at a time max } @@ -21,4 +20,4 @@ } doQuery(); }); -</script>
\ No newline at end of file +</script> |
