[TYPO3-core] RFC #13060: htmlmail: deprecated message with PHP 5.3 for sql_regcase

"Martin Müller" bugreporters at gmx.de
Sat May 8 15:41:40 CEST 2010


This is an SVN patch request.

Type: bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=13060

Branches:  trunk

Problem:
If everyone use htmlmail an depricated message appears at PHP 5.3 because sql_regcase() is used at function tag_regex().

Solution:

There is no need to use that function "sql_regcase()". The function "tag_regex()" produces an regex string which is used for preg_split() at htmlmail class. The intent is to produce a Regex with case insensitiv characters.

Remove sql_regcase and use regex modifier instead.


Notes: No

Regards Martin
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
-------------- next part --------------
Index: t3lib/class.t3lib_htmlmail.php
===================================================================
--- t3lib/class.t3lib_htmlmail.php	(revision 7566)
+++ t3lib/class.t3lib_htmlmail.php	(working copy)
@@ -1419,9 +1419,9 @@
 		$c = count($tags);
 		foreach($tags as $tag) {
 			$c--;
-			$regexp .= '<' . sql_regcase($tag) . "[[:space:]]" . (($c) ? '|' : '');
+			$regexp .= '<' . $tag . "[[:space:]]" . (($c) ? '|' : '');
 		}
-		return $regexp . '/';
+		return $regexp . '/i';
 	}
 
 


More information about the TYPO3-team-core mailing list