Project

General

Profile

Actions

Bug #66913

closed

JPG-Thumbnails are delivered with wrong Content-Type header

Added by Stephan Großberndt over 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2015-05-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

There is problem with displaying thumbnails in the Backend in Internet Explorer.

It turned out to be the header X-Content-Type-Options: "nosniff" in combination with the code in typo3\sysext\backend\Classes\View\ThumbnailView.php

header('Content-type: image/' . $outext);

This sends Content-type: image/jpg which is a wrong, undefined content type, correct is Content-type: image/jpeg.

IE sees the invalid content type and is not allowed to sniff the content - resulting in handling it as application/octetstream and offering it as download.

This results in thumbnails not showing up in backend (black/red X instead).

Actions #1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39482

Actions #2

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39482

Actions #3

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39567

Actions #4

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39567

Actions #5

Updated by Stephan Großberndt over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF