Problem/Motivation

A URL to a file can be accidentally broken.

Steps to reproduce

Use a file's URL in a link field, in certain circumstances the URL will be changed in unwanted ways.

Proposed resolution

After stripping off the protocol and hostname, check to see if the path is a valid file, if so just return it as-is.

Remaining tasks

  • Write test coverage for how files are handled.
  • Build the necessary changes to how file URLs are handled.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Release notes snippet

n/a

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna created an issue. See original summary.

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
2.91 KB

Check file paths, with test coverage.

DamienMcKenna’s picture

  • DamienMcKenna committed b1abcb4 on 1.0.x
    Issue #3161935 by DamienMcKenna: File paths can be broken.
    
DamienMcKenna’s picture

Status: Needs review » Fixed

Committed.

DamienMcKenna’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.