summaryrefslogtreecommitdiff
path: root/t/t9502-gitweb-standalone-parse-output.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-11-15 09:05:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-11-18 01:46:05 (GMT)
commit0eba60c9b781ce8169f1288a73b538f1ecf3b615 (patch)
treefbf01833c95a8a72c3ea5c0c255b686ebf608843 /t/t9502-gitweb-standalone-parse-output.sh
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9 (diff)
downloadgit-0eba60c9b781ce8169f1288a73b538f1ecf3b615.zip
git-0eba60c9b781ce8169f1288a73b538f1ecf3b615.tar.gz
git-0eba60c9b781ce8169f1288a73b538f1ecf3b615.tar.bz2
t9502: pass along all arguments in xss helper
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>
Diffstat (limited to 't/t9502-gitweb-standalone-parse-output.sh')
-rwxr-xr-xt/t9502-gitweb-standalone-parse-output.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t9502-gitweb-standalone-parse-output.sh b/t/t9502-gitweb-standalone-parse-output.sh
index 0796a43..1b04c29 100755
--- a/t/t9502-gitweb-standalone-parse-output.sh
+++ b/t/t9502-gitweb-standalone-parse-output.sh
@@ -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