Project

General

Profile

Actions

Defect #44718

closed

Links to headings containing quotes break after upgrading to Rails 8.1.4.1

Defect #44718: Links to headings containing quotes break after upgrading to Rails 8.1.4.1

Added by Katsuya HIDAKA about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Text formatting
Target version:
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 1 (0 open — 1 closed)

Related to Redmine - Patch #44711: Update Rails to 8.1.4.1ClosedGo MAEDAActions
Actions

Also available in: PDF Atom