Typically, HTML purifier allows all forms of the a attribute, but for some reason it filters out the "file://" protocol, leaving only the surrounding the text. I believe the problem can be fixed by adding it into the one of the "Allowed sections" of the configuration page, though there is no "allowed protocol."

Comments

Ender2’s picture

Title: a href="file://" » a href="file://" being filtered out
attheshow’s picture

subscribing

ezyang’s picture

Status: Active » Postponed (maintainer needs more info)

Why do you need file:// links? They were consciously left out as a security risk.

Ender2’s picture

One of our college departments uses it to map to a video file on a consistently named and mapped network drive. The page that contains the link will likely require authentication.

ezyang’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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