[BUGFIX] Always disable jumpurl for external media 42/35342/2
authorMarkus Klein <klein.t3@reelworx.at>
Fri, 12 Dec 2014 10:12:46 +0000 (11:12 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 12 Dec 2014 19:58:15 +0000 (20:58 +0100)
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 <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/frontend/Classes/ContentObject/MediaContentObject.php

index 3263824..016ae93 100644 (file)
@@ -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];
                }