Project

General

Profile

Bug #76944 » integrity-workaround.patch

Tim Riemenschneider, 2016-07-05 16:03

View differences:

typo3/sysext/core/Classes/Page/PageRenderer.php
$properties['file'] = GeneralUtility::resolveBackPath($properties['file']);
$properties['file'] = GeneralUtility::createVersionNumberedFilename($properties['file']);
$async = ($properties['async']) ? ' async="async"' : '';
$integrity = ($properties['integrity']) ? ' integrity="' . htmlspecialchars($properties['integrity']) . '"' : '';
$integrity = ($properties['integrity']) ? ' integrity="' . htmlspecialchars($properties['integrity']) . '" crossorigin="anonymous"' : '';
$tag = '<script src="' . htmlspecialchars($properties['file']) . '" type="' . htmlspecialchars($properties['type']) . '"' . $async . $integrity . '></script>';
if ($properties['allWrap']) {
$wrapArr = explode($properties['splitChar'] ?: '|', $properties['allWrap'], 2);
......
$file = GeneralUtility::resolveBackPath($file);
$file = GeneralUtility::createVersionNumberedFilename($file);
$async = ($properties['async']) ? ' async="async"' : '';
$integrity = ($properties['integrity']) ? ' integrity="' . htmlspecialchars($properties['integrity']) . '"' : '';
$integrity = ($properties['integrity']) ? ' integrity="' . htmlspecialchars($properties['integrity']) . '" crossorigin="anonymous"' : '';
$tag = '<script src="' . htmlspecialchars($file) . '" type="' . htmlspecialchars($properties['type']) . '"' . $async . $integrity . '></script>';
if ($properties['allWrap']) {
$wrapArr = explode($properties['splitChar'] ?: '|', $properties['allWrap'], 2);
(1-1/2)