Ticket #2801 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

Fix stripping of leading slashes in get_attachment_link()

Reported by: Libertus Assigned to: 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 (0.5 kB) - added by Libertus on 06/08/06 09:33:52.
The patch
2801.diff (500 bytes) - added by Nazgul on 04/04/07 21:35:57.

Change History

06/08/06 09:33:52 changed by Libertus

  • attachment get_attachment_link-trim-fix.diff added.

The patch

04/04/07 21:35:57 changed by Nazgul

  • attachment 2801.diff added.

04/04/07 21:36:21 changed by Nazgul

  • keywords changed from attachment permalink leading slash strip trim to attachment permalink leading slash strip trim has-patch.
  • milestone set to 2.3.

Patch refreshed

09/12/07 17:46:14 changed by westi

  • 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