[BUGFIX] Always disable jumpurl for external media 72/35372/2
authorMarkus Klein <klein.t3@reelworx.at>
Fri, 12 Dec 2014 10:12:46 +0000 (11:12 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 12 Dec 2014 21:13:00 +0000 (22:13 +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/35372
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/frontend/Classes/ContentObject/MediaContentObject.php

index bd86abd..dc88ba5 100644 (file)
@@ -258,9 +258,12 @@ class MediaContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractConte
                } 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];
                }