Fixed bug #9806: Mountpoints do not work across domain boundaries
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 24 Nov 2008 19:38:26 +0000 (19:38 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 24 Nov 2008 19:38:26 +0000 (19:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4484 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index 10edaa2..220514e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-24  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #9806: Mountpoints do not work across domain boundaries
+
 2008-11-22  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #9798: Don't show fe_users password in page module
index 3c34d3d..3264f41 100755 (executable)
@@ -5308,7 +5308,11 @@ class tslib_cObj {
                                                        // Add "&MP" var:
                                                        $addQueryParams.= '&MP='.rawurlencode(implode(',',$MPvarAcc));
                                                }
-                                               elseif ($GLOBALS['TSFE']->config['config']['typolinkCheckRootline']) {
+                                               elseif (strpos($addQueryParams, '&MP=') === false && $GLOBALS['TSFE']->config['config']['typolinkCheckRootline']) {
+
+                                                       // We do not come here if additionalParams had '&MP='. This happens when typoLink is called from
+                                                       // menu. Mount points always work in the content of the current domain and we must not change
+                                                       // domain if MP variables exist.
 
                                                        // If we link across domains and page is free type shortcut, we must resolve the shortcut first!
                                                        // If we do not do it, TYPO3 will fail to (1) link proper page in RealURL/CoolURI because