Project

General

Profile

Actions

Feature #532

closed

expand symlinks before checking filename extension

Added by Anonymous about 19 years ago. Updated over 16 years ago.

Status:
Wontfix
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

IMHO, symlinks should be expanded before checking the filename extension. For example, if I have link.foo as a symlink to bar.png, then when I download link.foo, it should be returned as a image/png instead of a application/octet-stream. Alternatively, if I have link.foo as a symlink to bar.php, then when I load link.foo, it should execute the PHP script instead of downloading as an application/octet-stream.

(e.g. I used this trick an a different http server to set up simple redirects, by symlinking foo.html to foo.redir, where foo.redir is a text file that contains the new location, and is interpreted by an external program. So the http server, when a user tries to visit foo.html, sees the symlink to foo.redir, notices the .redir extension, and runs the external program which spits out the right headers to redirect the user to the right page.)

-- hubert

Actions #1

Updated by stbuehler over 16 years ago

  • Status changed from New to Fixed
  • Resolution set to wontfix

won't change existing behaviour.

Actions #2

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Wontfix
Actions

Also available in: Atom