Skip to content

Commit 364a258

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent b4429d1 commit 364a258

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/rake_ui/rake_task_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class RakeTaskTest < ActiveSupport::TestCase
4545
command = task.build_rake_command(environment: malicious_env)
4646
# "FOO=bar;baz" matches KEY=VALUE pattern (no spaces to split it)
4747
# The value "bar;baz" gets escaped so the semicolon can't be a command separator
48-
assert_includes command, "FOO=", "Should include FOO assignment"
48+
assert_includes command, "FOO=bar\\;baz", "Should escape semicolon in env var value"
4949
assert_includes command, "rake", "Should include rake command"
5050
end
5151

0 commit comments

Comments
 (0)