Skip to content

Commit 0eba60c

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5fa0f52 commit 0eba60c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t9502-gitweb-standalone-parse-output.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ test_expect_success 'forks: project_index lists all projects (incl. forks)' '
188188
'
189189

190190
xss() {
191-
echo >&2 "Checking $1..." &&
192-
gitweb_run "$1" &&
191+
echo >&2 "Checking $*..." &&
192+
gitweb_run "$@" &&
193193
if grep "$TAG" gitweb.body; then
194194
echo >&2 "xss: $TAG should have been quoted in output"
195195
return 1

0 commit comments

Comments
 (0)