Skip to content

Commit

Permalink
Tests: adapting unsafe redirect test for QuickJS.
Browse files Browse the repository at this point in the history
At the moment QuickJS has no API for getting strings
with NUL characters in the middle of the string.

Instead of a NUL byte make another unsafe redirect URI.
  • Loading branch information
xeioex committed Jul 26, 2024
1 parent 29c71bf commit 3ac4968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx/t/js_internal_redirect.t
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $t->write_file('test.js', <<EOF);
r.internalRedirect('\@named');
} else if (r.variables.arg_unsafe) {
r.internalRedirect('/red\0rect');
r.internalRedirect('/red/../rect');
} else if (r.variables.arg_quoted) {
r.internalRedirect('/red%69rect');
Expand Down

0 comments on commit 3ac4968

Please sign in to comment.