Fixed bug #10331: linkHandler different than "record" leads to rteerror
authorOliver Hader <oliver.hader@typo3.org>
Tue, 28 Apr 2009 16:06:37 +0000 (16:06 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 28 Apr 2009 16:06:37 +0000 (16:06 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5370 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml_proc.php

index 4c91357..f30f69a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2009-04-28  Oliver Hader  <oliver@typo3.org>
 
        * Cleanup: Fixed whitespaces in admin panel
+       * Fixed bug #10331: linkHandler different than "record" leads to rteerror (thanks to Martin Holtz)
 
 2009-04-27  Steffen Kamper  <info@sk-typo3.de>
 
index dff6646..7169b1a 100644 (file)
@@ -734,8 +734,8 @@ class t3lib_parsehtml_proc extends t3lib_parsehtml {
                                                if (is_array($page))    {       // Page must exist...
                                                        $pairParts = t3lib_div::trimExplode(',',$link_param);
                                                        $href = $siteUrl.'?id='.$pairParts[0].($pairParts[2]?$pairParts[2]:'');
-                                               } else if(strtolower(substr($link_param, 0, 7)) == 'record:') {
-                                                               // linkHandler - allowing links to start with "record:"
+                                                       // linkHandler - allowing links to start with registerd linkHandler e.g.. "record:"
+                                               } elseif (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'][array_shift(explode(':', $link_param))])) {
                                                        $href = $link_param;
                                                } else {
                                                        #$href = '';