Patch #37713

Add rel="noopener" to all external links that would open a new tab/window

Added by Jens Krämer 2 months ago. Updated 2 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Marius BALTEANU% Done:

0%

Category:Text formatting
Target version:5.0.3

Description

This patch extends the ExternalLinksFilter to add rel="noopener" where necessary.
This is a safety measure to prevent the destination site from accessing the context of the opening window.

0001-add-rel-noopener-to-all-external-links-with-a-target.patch Magnifier (2.1 KB) Jens Krämer, 2022-09-26 13:10

Associated revisions

Revision 21849
Added by Marius BALTEANU 2 months ago

Add rel="noopener" to all external links with a target attribute (#37713).

Patch by Jens Krämer.

Revision 21858
Added by Marius BALTEANU 2 months ago

Merged r21849 from trunk to 5.0-stable (#37713).

Revision 21865
Added by Go MAEDA 2 months ago

Fix RuboCop offense Layout/LineLength due to r21849 (#37713).

Revision 21866
Added by Go MAEDA 2 months ago

Merged r21865 from trunk to 5.0-stable (#37713).

History

#1 Updated by Mischa The Evil 2 months ago

  • Target version set to 5.0.3

#2 Updated by Marius BALTEANU 2 months ago

  • Status changed from New to Resolved
  • Assignee set to Marius BALTEANU

Patch committed, thanks!

#3 Updated by Marius BALTEANU 2 months ago

  • Subject changed from add rel="noopener" to all external links that would open a new tab/window to Add rel="noopener" to all external links that would open a new tab/window
  • Status changed from Resolved to Closed

Fix merged to 5.0.3.

Also available in: Atom PDF