Correct last patch
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 16 Jul 2007 13:06:22 +0000 (13:06 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 16 Jul 2007 13:06:22 +0000 (13:06 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2421 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_div.php

index 320073e..4d1dacb 100755 (executable)
@@ -4289,7 +4289,7 @@ class t3lib_div {
                if (strstr($line,'###'))        return $line;
 
                        // Check if any non-ASCII characters are found - otherwise encoding is not needed
-               if (!preg_match('/[^'.chr(32).'-'.chr(127).']/',$line) && ($enc=='base64' || strpos($line,'=?')===FALSE))       return $line;
+               if (!preg_match('/[^'.chr(32).'-'.chr(127).']/',$line)) return $line;
 
                        // Wrap email addresses in a special marker
                $line = preg_replace('/([^ ]+@[^ ]+)/', '###$1###', $line);
@@ -4457,6 +4457,7 @@ class t3lib_div {
         */
        function sysLog($msg, $extKey, $severity=0) {
                global $TYPO3_CONF_VARS;
+
                $severity = t3lib_div::intInRange($severity,0,4);
 
                        // is message worth logging?