]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t9502: pass along all arguments in xss helper
authorJeff King <peff@peff.net>
Fri, 15 Nov 2019 09:05:56 +0000 (04:05 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Nov 2019 01:46:05 +0000 (10:46 +0900)
This function is just a thin wrapper around gitweb_run(), which takes
multiple arguments. But we only pass along "$1". Let's pass everything
we get, which will let a future patch add an XSS test that affects
PATH_INFO (which gitweb_run() takes as $2).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9502-gitweb-standalone-parse-output.sh

index 0796a438bc7759292ba900427304ebf9c814c904..1b04c29037bc7f4386a6e50f57c8f0557e7edb52 100755 (executable)
@@ -188,8 +188,8 @@ test_expect_success 'forks: project_index lists all projects (incl. forks)' '
 '
 
 xss() {
-       echo >&2 "Checking $1..." &&
-       gitweb_run "$1" &&
+       echo >&2 "Checking $*..." &&
+       gitweb_run "$@" &&
        if grep "$TAG" gitweb.body; then
                echo >&2 "xss: $TAG should have been quoted in output"
                return 1