Ticket #2801 (closed defect (bug): fixed)

Opened 6 years ago

Last modified 4 years ago

Fix stripping of leading slashes in get_attachment_link()

Reported by: Libertus Owned by: anonymous
Priority: normal Milestone: 2.3
Component: General Version: 2.1
Severity: normal Keywords: attachment permalink leading slash strip trim has-patch
Cc:

Description

Generation of the attachment link from the permalink unintentionally strips leading slashes. This patch corrects it.

Attachments

get_attachment_link-trim-fix.diff Download (555 bytes) - added by Libertus 6 years ago.
The patch
2801.diff Download (500 bytes) - added by Nazgul 5 years ago.

Change History

The patch

Nazgul5 years ago

  • Keywords has-patch added
  • Milestone set to 2.3

Patch refreshed

  • Status changed from new to closed
  • Resolution set to fixed

(In [6095]) Ensure the parentlink is trailingslashed when building the url - don't trim / off the front. Fixes #2801 props Libertus

Note: See TracTickets for help on using tickets.