trim the charset for normalization
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 11 Jul 2006 15:58:57 +0000 (15:58 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 11 Jul 2006 15:58:57 +0000 (15:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1622 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_cs.php

index 8012db0..be73aaa 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+
+2006-07-11  Martin Kutschker  <martin.t.kutschker@blackbox.net>
+
+       * t3lib_cs: trim the charset for normalization
+
 2006-07-10 Dmitry Dulepov <typo3@accio.lv>
 
        * Fixed bug: missing check for PHP version in t3lib_div::getUrl()
index fb0def3..036aca9 100755 (executable)
@@ -525,7 +525,7 @@ class t3lib_cs {
         * @author      Martin Kutschker <martin.t.kutschker@blackbox.net>
         */
        function parse_charset($charset)        {
-               $charset = strtolower($charset);
+               $charset = trim(strtolower($charset));
                if (isset($this->synonyms[$charset]))   $charset = $this->synonyms[$charset];
 
                return $charset;