Commit e1073f8d authored by Markus Klein's avatar Markus Klein Committed by Wouter Wolters
Browse files

[BUGFIX] Always disable jumpurl for external media

We always disable the global jumpurl feature when retrieving the URL for
an external media element like a video.

Resolves: #63807
Releases: master, 6.2
Change-Id: I3c108f4366869e39423bf1121ee7dfa125148a2a
Reviewed-on: http://review.typo3.org/35342


Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent eefbfca5
......@@ -259,9 +259,12 @@ class MediaContentObject extends AbstractContentObject {
} elseif (is_file(PATH_site . $fileParts[0])) {
$returnValue = $GLOBALS['TSFE']->tmpl->getFileName($fileParts[0]);
} elseif ($mediaWizard !== NULL) {
$jumpUrlEnabled = $GLOBALS['TSFE']->config['config']['jumpurl_enable'];
$GLOBALS['TSFE']->config['config']['jumpurl_enable'] = 0;
$returnValue = $this->cObj->typoLink_URL(array(
'parameter' => $mediaWizard->rewriteUrl($fileParts[0])
));
$GLOBALS['TSFE']->config['config']['jumpurl_enable'] = $jumpUrlEnabled;
} elseif (\TYPO3\CMS\Core\Utility\GeneralUtility::isValidUrl($fileParts[0])) {
$returnValue = $fileParts[0];
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment