[BUGFIX] fe_adminLib.inc uses undefined function
authorSven Burkert <sventb@gmail.com>
Thu, 22 Dec 2011 08:50:41 +0000 (02:50 -0600)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 27 Jun 2012 16:43:04 +0000 (18:43 +0200)
fe_adminLib.inc calls preg_spliti() which does not exist.

Change-Id: I7c16c2590ddc193fcad99e970ab8c6975e369261
Fixes: #32773
Releases: 4.7, 4.6, 4.5, 4.4
Reviewed-on: http://review.typo3.org/12083
Reviewed-by: Oliver Klee
Reviewed-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc

index 494996b..0a31da9 100755 (executable)
@@ -1491,7 +1491,7 @@ class user_feAdmin        {
         */
        function sendHTMLMail($content,$recipient,$dummy,$fromEmail,$fromName,$replyTo='')      {
                if (trim($recipient) && trim($content)) {
-                       $parts = preg_split('<title>|</title>', $content, 3);
+                       $parts = preg_split('/<title>|<\/title>/i', $content, 3);
                        $subject = trim($parts[1]) ? trim($parts[1]) : 'TYPO3 FE Admin message';
 
                        $Typo3_htmlmail = t3lib_div::makeInstance('t3lib_htmlmail');
@@ -1724,4 +1724,4 @@ class user_feAdmin        {
 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['media/scripts/fe_adminLib.inc'])) {
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['media/scripts/fe_adminLib.inc']);
 }
-?>
+?>
\ No newline at end of file