We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01c8e42 + 5627a90 commit fe4f472Copy full SHA for fe4f472
1 file changed
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -404,11 +404,14 @@ def run
404
# maximum length of PR body is 65,536 characters so let's truncate release notes to half of that.
405
body = Formatter.truncate(github_release_data["body"], max: 32_768)
406
407
+ # Ensure the URL is properly HTML encoded to handle any quotes or other special characters
408
+ html_url = CGI.escapeHTML(github_release_data["html_url"])
409
+
410
formula_pr_message += <<~XML
411
<details>
412
<summary>#{pre}release notes</summary>
413
<pre>#{body}</pre>
- <p>View the full release notes at #{github_release_data["html_url"]}.</p>
414
+ <p>View the full release notes at <a href="#{html_url}">#{html_url}</a>.</p>
415
</details>
416
XML
417
end
0 commit comments