Follow-up to #14658: Feature: internal links with parameters outside the RTE (headlin...
authorSteffen Kamper <info@sk-typo3.de>
Mon, 15 Nov 2010 15:21:04 +0000 (15:21 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 15 Nov 2010 15:21:04 +0000 (15:21 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9387 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 46c3ca3..69103df 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-11-15  Steffen Kamper  <steffen@typo3.org>
 
+       * Follow-up to #14658: Feature: internal links with parameters outside the RTE (headlines, images ...)
        * Fixed bug #16383: BE Module are complicate to render
 
 2010-11-15  Oliver Hader  <oliver@typo3.org>
index 1a1611e..7c0de95 100644 (file)
@@ -5285,8 +5285,10 @@ class tslib_cObj {
                        if ($forceTitle == '-') {
                                $forceTitle = '';       // The '-' character means 'no title'. Necessary in order to specify further parameters without setting the title!
                        }
-                       $forceParams = trim($link_paramA[4]);   // params value
-                       $conf['additionalParams'] .= $forceParams[0] == '&' ? $forceParams : '&' . $forceParams;
+                       if (isset($link_paramA[4]) && strlen(trim($link_paramA[4])) > 0) {
+                               $forceParams = trim($link_paramA[4]);   // params value
+                               $conf['additionalParams'] .= $forceParams[0] == '&' ? $forceParams : '&' . $forceParams;
+                       }
 
                                // Check, if the target is coded as a JS open window link:
                        $JSwindowParts = array();