Skip to content

Encode the issue title like the body - #821

Merged
SimonCropp merged 1 commit into
mainfrom
fix-issue-url-encoding
Aug 22, 2026
Merged

Encode the issue title like the body#821
SimonCropp merged 1 commit into
mainfrom
fix-issue-url-encoding

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

The URL the tray opens after an error put the raw message in title= while encoding
body=. The message carries a file path, so a '#' in one - a directory named C# will
do it - started a fragment: the body went, and the title ended at the hash. An '&'
started a parameter GitHub does not have, truncating the title there.

Both halves are built in one place now, and the title goes through UrlEncode. The
body still arrives already encoded from its callers, which is why it is appended
rather than encoded again.

The URL the tray opens after an error put the raw message in title= while encoding
body=. The message carries a file path, so a '#' in one - a directory named C# will
do it - started a fragment: the body went, and the title ended at the hash. An '&'
started a parameter GitHub does not have, truncating the title there.

Both halves are built in one place now, and the title goes through UrlEncode. The
body still arrives already encoded from its callers, which is why it is appended
rather than encoded again.
@SimonCropp SimonCropp added this to the 20.0.0 milestone Aug 22, 2026
@SimonCropp
SimonCropp merged commit d6f9b1d into main Aug 22, 2026
10 checks passed
@SimonCropp
SimonCropp deleted the fix-issue-url-encoding branch August 22, 2026 12:13
This was referenced Aug 26, 2026
This was referenced Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant