Page MenuHomePhabricator

Add configuration option to mask file extensions for image description pages
Closed, ResolvedPublic

Description

Currently image description pages have URLs that end in the same extension as the file they are referencing. Unfortunately it is not uncommon for search engines and other utilities to assume that any URL ending in ".jpg", ".png", etc. is an image file rather than a content page. Much as it would be nice if everyone checked content-type declarations there are many practical examples where this is not done.

I would propose the creation of a configuration option to allow image description pages to mask these extensions in their url. That would allows sites that are concerned about type confusion to get around the problem.

For example, one could automatically convert ".jpg" to "_jpg" (or some other similar translation scheme) at the end of the image description page link. Alternatively one could append ".htm" to the end of the link or simply strip the extension entirely (though this latter option means dealing with naming collisions).


Version: unspecified
Severity: enhancement

Details

Reference
bz19874

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:40 PM
bzimport set Reference to bz19874.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 4421 ***