Opened 7 years ago

Closed 6 years ago

#2801 closed defect (bug) (fixed)

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 (2)

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

Download all attachments as: .zip

Change History (4)

The patch

Nazgul6 years ago

  • Keywords has-patch added
  • Milestone set to 2.3

Patch refreshed

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

(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.