Bug #76944 » integrity-workaround.patch
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);
|