From 555be98e0a9a4f64f55092b7c175de2917f4655c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 6 Sep 2026 19:58:12 -1000 Subject: Remove the auto-submitting selects --- tests/t0301-security.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/t0301-security.sh b/tests/t0301-security.sh index 8fce5f4..9a3af3c 100755 --- a/tests/t0301-security.sh +++ b/tests/t0301-security.sh @@ -118,12 +118,12 @@ test_expect_success 'non-markdown readme keeps its line structure' ' ' # A Content-Security-Policy without unsafe-inline stops an inline onchange -# handler from ever running, so the option forms only mark their selects and -# cgit.js wires the submit up from outside the page. -test_expect_success 'diff option selects use the autosubmit marker' ' +# handler from ever running, so the option form submits through a plain +# button and its selects carry no handlers at all. +test_expect_success 'diff options submit through a button' ' sha=$(git -C repos/foo rev-parse HEAD) && cgit_query "url=foo/commit&id=$sha" >tmp && - grep "data-autosubmit" tmp && + grep "type=.submit. value=.reload." tmp && ! grep "onchange" tmp ' -- cgit v2.8.0