Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295813

Register symfony's mime guessers if they are supported

$
0
0

Problem/Motivation

Symfony providers two mime guessers FileinfoMimeTypeGuesser and FileBinaryMimeTypeGuesser which do a better and more secure job than ExtensionMimeTypeGuesser.

If either are supported we should add them to Drupal\Core\File\MimeType\MimeTypeGuesser with a preference for FileinfoMimeTypeGuesser.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue priorityMajor because using fileinfo or the file command represents a security improvement over the extension based guessing.
Prioritized changesThe main goal of this issue is security.
DisruptionWhilst this removes a hook from core this hook is only used by the File Entity module in Drupal 7 (Looking at http://drupalcontrib.org/api/drupal/drupal%21modules%21system%21system.a...). All the additional maapins it adds are in Drupal 8 so this is not necessary since #1443070: Add support for popular e-book formats, Google web formats, mkv and mka in file_default_mimetype_mapping() landed.

Proposed resolution

Remaining tasks

Contributor tasks needed
TaskNovice task?Contributor instructionsComplete?
Reroll the patch if it no longer applies.Instructions

User interface changes

API changes


Viewing all articles
Browse latest Browse all 295813

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>