Project

General

Profile

Actions

Bug #59135

closed

Not showing images with utf-8 characters in url

Added by Dragan Tomic almost 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2014-05-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

Images are not showing when thay have utf-8 characters in url.

Possible solution is to add '<meta charset="utf-8">' to main() method in TYPO3\CMS\Frontend\Controller\ShowImageController

Something like this:

<html>
<head>
<meta charset="utf-8">
    <title>' . htmlspecialchars(($this->title ? $this->title : 'Image')) . '</title>
    ' . ($this->title ? '' : '<meta name="robots" content="noindex,follow" />') . '
</head>
        ' . ($this->bodyTag ? $this->bodyTag : '<body>');
         if (is_array($imgInfo)) {
            $wrapParts = explode('|', $this->wrap);
            $this->content .= trim($wrapParts[0]) . $img->imgTag($imgInfo) . trim($wrapParts[1]);
        }
        $this->content .= '
        </body>
        </html>';

Affected versions: 6.1.5; 6.1.8


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #63979: FAL fails with "special characters" and whitespaces in filenamesClosed2014-12-18

Actions
Actions

Also available in: Atom PDF