Actions
Defect #44718
openLinks to headings containing quotes break after upgrading to Rails 8.1.4.1
Resolution:
Fixed
Affected version:
Description
After upgrading to Rails 8.1.4.1 #44711 , generated anchors for headings containing quotes change, breaking existing links. This affects both Textile and Markdown.
This is caused by a security fix in Rails' strip_tags, which now escapes single and double quotes in its output.
https://github.com/rails/rails/security/advisories/GHSA-rq8q-p985-fjq7
For example, the anchor for Bob's guide changes from Bobs-guide to Bob39s-guide. Wiki links such as [[#Bob's guide]] and [[#Bobs-guide]] no longer navigate to the heading. Previously saved URLs ending in #Bobs-guide are also affected.
Automatically generated TOC and paragraph-sign links still work because they use the new anchor names.
Files
Related issues
Actions