From 4e0b904b12461272fcdfe5dfb71676091a77d12e Mon Sep 17 00:00:00 2001 From: TheWitness Date: Fri, 23 Oct 2026 18:38:45 -0400 Subject: [PATCH 1/2] Replace deprecated get_request_var_request() with get_request_var() Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- top_graph_header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/top_graph_header.php b/top_graph_header.php index 012b7ce..600f418 100644 --- a/top_graph_header.php +++ b/top_graph_header.php @@ -31,7 +31,7 @@ } /* ================= input validation ================= */ -input_validate_input_number(get_request_var_request("local_graph_id")); +input_validate_input_number(get_request_var("local_graph_id")); /* ==================================================== */ if (read_config_option("auth_method") != 0) { From fb9602053efe757234092a32a7c67bcd67a2e847 Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Fri, 23 Oct 2026 20:49:02 -0600 Subject: [PATCH 2/2] test: allowlist top_graph_header.php in the patch coverage gate Signed-off-by: Thomas Vincent --- tests/bin/patch-coverage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/bin/patch-coverage.php b/tests/bin/patch-coverage.php index e2f342b..0a548e3 100644 --- a/tests/bin/patch-coverage.php +++ b/tests/bin/patch-coverage.php @@ -164,6 +164,10 @@ function changed_lines($base_ref) { // plugin_npc_install() at install time, not exercisable in the isolated // unit process. 'includes/database.php', + // Legacy web header: executes at the top level against the session and + // auth tables, so it cannot be loaded into the isolated unit process. Changed + // here only to replace a deprecated request-variable alias. + 'top_graph_header.php', ]; $unmeasured = array_values(array_diff(array_keys($changed), array_keys($measured))); $unexpected_unmeasured = array_values(array_diff($unmeasured, $unmeasured_allowlist));