Open
Description
Observed Behaviour
This repository has a file with a control character (\r
) in the file name:
diff --git "a/\rexit" "b/\rexit"
new file mode 100644
index 0000000000..8e1cc8374c
--- /dev/null
+++ "b/\rexit"
Resulting in the following error:
2024-12-04T12:55:42Z error trufflehog unable to parse link to update line number {"detector_worker_id": "Js4ie", "detector": {"type":"PrivateKey"}, "timeout": 60, "link": "https://github.com/ibm-developer-skills-network/jbbmo-Introduction-to-Git-and-GitHub/blob/b8938b6ea34624d7376285d1f47b577dac9e2619/\rexit#L1", "link": "https://github.com/ibm-developer-skills-network/jbbmo-Introduction-to-Git-and-GitHub/blob/b8938b6ea34624d7376285d1f47b577dac9e2619/\rexit#L1", "error": "parse \"https://github.com/ibm-developer-skills-network/jbbmo-Introduction-to-Git-and-GitHub/blob/b8938b6ea34624d7376285d1f47b577dac9e2619/\\rexit\": net/url: invalid control character in URL"}
Expected Behaviour
This ought to be encoded as https://github.com/ibm-developer-skills-network/jbbmo-Introduction-to-Git-and-GitHub/blob/b8938b6ea34624d7376285d1f47b577dac9e2619/%0Dexit